int main(int argc, char** argv) { //Initialize GLUT glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH); glutInitWindowSize(400, 400); //Create the window glutCreateWindow("Transformations and Timers - videotutorialsrock.com"); initRendering(); //Set handler functions glutDisplayFunc(drawScene); glutKeyboardFunc(handleKeypress); glutReshapeFunc(handleResize); glutTimerFunc(DISPLAY_INTERVAL, update, 0); //Add a timer spatial_simple(); glutMainLoop(); return 0; }
//main entry point to the program int main(int argc, char* argv[]) { //all done, exit spatial_simple(); return 0; }