void Display glClear GL_COLOR_BUFFER_BIT glColor3f glBegin GL_LINES gl

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
/*
void Display() {
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(0, 1, 0);
glBegin(GL_LINES);
glVertex2d(0, 0);
glVertex2d(0.5, 0.5);
glEnd();
glutPostRedisplay();
glutSwapBuffers();
}
*/
void main() {
/*glutInitDisplayMode (GLUT_RGBA | GLUT_DOUBLE);
glutInitWindowSize (480, 480);
glutInitWindowPosition(100, 100);
glutCreateWindow(" ");
glClearColor(0.9, 0.5, 0.75, 1);
glutDisplayFunc(Display);
glutMainLoop();*/
}