Example #1
0
        protected override void OnRenderFrame(FrameEventArgs e)
        {
            if(_isPaused) return;
            
            base.OnRenderFrame(e);

            var deltaTime = (float)e.Time;
            _game.Render(deltaTime);
            SwapBuffers();
        }
Example #2
0
 protected override void OnRenderFrame(FrameEventArgs e)
 {
     base.OnRenderFrame(e);
     _game.Render((float)e.Time);
     SwapBuffers();
 }