#include void display(void) { glClear(GL_COLOR_BUFFER_BIT); glColor3f(red, green blue); glBegin(GL_POLYGON); /* describe polygon vertices here */ glEnd(); glFlush(); } void init(void) { glClearColor( red, green, blue, 0.0); /* initialize viewing values */ } int main( &argc, argv); { glutInit(&argc, argv); glutInitDisplayMode9GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(); glutInitwindowPosition(); glutCreateWindow(); init(); glutdisplayFunc(display); glutMainLoop(); return 0; }