Beispiel #1
0
 //game loop is passed as a delegate to fast loop
 void GameLoop(double elapsedTime)
 {
     _fps.Process(elapsedTime);
     //Console.WriteLine(FramesPerSecond.DeltaTime);
     _system.Update(elapsedTime);
     _system.Render();
     _openGLControl.Refresh();
 }
 private void GameLoop(float deltaTime)
 {
     m_System.Update(deltaTime);
     m_System.Draw();
     m_OpenGLControl.Refresh();
 }
Beispiel #3
0
 //game loop is passed as a delegate to fast loop
 void GameLoop(double elapsedTime)
 {
     _system.Update(elapsedTime);
     _system.Render();
     _openGLControl.Refresh();
 }