예제 #1
0
 static void Run()
 {
     RecordCommandBuffer(forge.Context(0).graphicsBuffers[0], 0);
     while (run)
     {
         Draw();
         foreach (SDL.SDL_Event ev in InputStream.ReadAll())
         {
             if (ev.type == SDL.SDL_EventType.SDL_QUIT)
             {
                 run = false;
             }
         }
     }
     Quit();
 }