protected override void OnUpdateFrame(FrameEventArgs e) { try { CursorVisible = !Tukxel.CursorLockAndInvisible; Tukxel.Focused = Focused; KeyboardState keyboard = Keyboard.GetState(); Tukxel.keyboard = keyboard; Tukxel.X = X; Tukxel.Y = Y; Debugger.Update(); Tukxel.Update(); base.OnUpdateFrame(e); } catch (Exception error) { Debugger.Error(error.ToString(), "at Game.OnUpdateFrame(), updating the frame."); } }
protected override void OnLoad(EventArgs e) { try { GL.ClearColor(0.2f, 0.3f, 0.3f, 1.0f); Debugger.Setup(); Tukxel.Setup(); Renderer.Setup(); base.OnLoad(e); } catch (Exception error) { Debugger.Error(error.ToString(), "at Game.OnLoad(), loading the game."); } }