Description
Source
Call Graph
Start Line: 213
virtual int Application::main(int argumentCount, char **argumentValues)
{
Application* app = (Application*)Application::TheApplication;
ilInit();
ilEnable(IL_CONV_PAL);
ilutEnable(ILUT_OPENGL_CONV);
glutInit(&argumentCount, argumentValues);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA | GLUT_DEPTH | GLUT_STENCIL);
glutInitWindowSize(app->getWidth(), app->getHeight());
glutSetOption(GLUT_ACTION_ON_WINDOW_CLOSE, GLUT_ACTION_CONTINUE_EXECUTION) ;
app->setWindowID(glutCreateWindow(app->getWindowTitle()));
glewInit();
app->onEntry();
glClearColor(0.0f, 0.0f, 0.0f, 1.0f);
glutDisplayFunc(displayCallback);
glutIdleFunc(idleCallback);
glutReshapeFunc(reshapeCallback);
glutKeyboardFunc(keyDownCallback);
glutSpecialFunc(specialKeyDownCallback);
glutKeyboardUpFunc(keyUpCallback);
glutSpecialUpFunc(specialKeyUpCallback);
glutMouseFunc(mouseClickCallback);
glutMouseWheelFunc(mouseWheelCallback);
glutMotionFunc(motionCallback);
glutPassiveMotionFunc(passiveMotionCallback);
glutEntryFunc(entryCallback);
glutCloseFunc(closeCallback);
glutMainLoop();
return(0);
}