/* File: step0.c Author: Katia Oleinik A basic set structure of GLUT program */ #include #include #include /* user defined functions */ void display(void); void init(void); int main(int argc, char **argv) { /* GLUT Configuration */ glutInit(&argc, argv); /* Create Window and give a title*/ glutCreateWindow("Sample GL Window"); /* Set display as a callback for the current window */ glutDisplayFunc(display); /* Set basic openGL states */ init(); /* Enter GLUT event processing loop, which interprets events and calls respective callback routines */ glutMainLoop(); /* Exit the program */ return 0; } /* display is called by the glut main loop once for every animated frame */ void display(void) { } /* called once to set up basic opengl state */ void init(void) { }