Beispiel #1
0
 public void Key(byte key, int x, int y)
 {
     if (key == 27)
     {
         Glut.glutLeaveGameMode();
         Glut.glutDestroyWindow(_windowCode);
     }
     _keyboardState.KeyPress(key);
 }
Beispiel #2
0
        /*
         * This is a sample idle function
         */
        static void SampleIdle()
        {
            g_fTime += 0.5f;

            if (g_LeaveGameMode == 1)
            {
                Glut.glutLeaveGameMode();
                g_LeaveGameMode = 0;
                g_InGameMode    = 0;
            }
        }
Beispiel #3
0
 void CloseWindow()
 {
     Glut.glutLeaveGameMode();
     Glut.glutDestroyWindow(_windowCode);
 }