Esempio n. 1
0
 //OpenTK window
 public static void RenderFrame(System.Object sender, OpenTK.FrameEventArgs e)
 {
     if (Core.Main.initDone)
     {
         OpenTKWindow main = sender as OpenTKWindow;
         main.Title = $"T-Delta: {(e.Time * 1000).ToString("n0")}ms | Time Elapsed: {GameLoop.stopwatch.Elapsed.ToString(@"mm\:ss")}";
         renderingLoop();
         main.SwapBuffers();
     }
 }
Esempio n. 2
0
 public override void Present( )
 {
     OpenTKWindow.SwapBuffers( );
 }