void display (void)
glColor3f(0.0,0.0,1.0); glBegin(GL_POLYGON); glVertex3f(0.25,0.25,0.0); glVertex3f(0.75,0.25,0.0); glVertex3f(0.75,0.75,0.0); glVertex3f(0.25,0.75,0.0); glEnd(); glFlush();
void init (void)
int main(int argc,char** argv)
I am a newbie in openGL. In the above program can somebody tell me what’s the difference in placing the command glClear(…) in positions commented and marked 1 and 2 ?