Professional Documents
Culture Documents
Animation
Animation
int x1=0,y1=0;
void Draw()
{
glClear(GL_COLOR_BUFFER_BIT |GL_RGBA);
GLsizei r,g,b;
r=rand()%2;
b=rand()%2;
g=rand()%2;
glColor3f(r,g,b);
glBegin(GL_POINTS);
x1=rand()%800;
y1=rand()%600;
glVertex2i(x1,y1);
glEnd ( );