コード例 #1
0
ファイル: LifeMain.cpp プロジェクト: rzuniga64/cplusplus
int main(int argc, char **argv) {
    graphicsSetup(argc, argv);
    glutDisplayFunc(drawScene);
    glutIdleFunc(animate);
    glutKeyboardFunc(handleKey);
    glutMainLoop();
    glutSwapBuffers();
}
コード例 #2
0
ファイル: main.cpp プロジェクト: rblack42/cosc1315.code
int main(int argc, char **argv) {
    graphicsSetup(argc, argv);      // initialize the graphics system
    glutDisplayFunc(drawScene);     // tell GLUT what function draws the scene
    glutIdleFunc(animate);          // Move objects when animating
    glutKeyboardFunc(handleKey);    // set up the "q" key to quit
    glutMainLoop();                 // GLUT will control the action
    //glutSwapBuffers();              // double buffering control
}
コード例 #3
0
ファイル: main.cpp プロジェクト: rblack42/cosc1337.code
int main(int argc, char **argv) {
    // initialize the drawing surface
    graphicsSetup(argc, argv);

    // register event handlers
    glutDisplayFunc(drawScene);
    glutIdleFunc(animate);
    glutKeyboardFunc(handleKey);

    // start the animation
    glutMainLoop();
}