where do i get information about using graphics?
That's an overly broad question. What is it that you want to do exactly?
I'm making a program in which i want to show a ball moving..
i used this
#include <iostream>
#include "ezwin.h"
#include <time.h>
#include "position.h"
#include "rect.h"
#include "circle.h"
#include "triangle.h"
#include "square.h"
#include "wobject.h"
#include "shape.h"
#include "bitmap.h"
#include "label.h"
void wait ( int seconds )
{
clock_t endwait;
endwait = clock () + seconds * CLOCKS_PER_SEC/100 ;
while (clock() < endwait) {}
}
using namespace std;
SimpleWindow w("My first window" ,15, 15);
int ApiMain() {
w.Open();
float x,y;
for( x=0.0;x<50.0;x+=2)
{
CircleShape C (w, Position (x, 5),Blue,1); //(color)i, 2);
C.Draw();
CircleShape C1 (w, Position (x-2, 5),White,1); //(color)i, 2);
C1.Draw();
wait (100);
}
cout << "Type Ctrl-C to remove the display and exit" << endl;
char AnyChar;
cin >> AnyChar;
w.Close();
return 0;
}
the boundary has a default color black
so everytime the boundary remains!!!!
what can i do about this?
i want to get the max x distance and max y distance of the window i open....
how do i do that?