protected override void OnLoad(EventArgs e) { base.OnLoad(e); GL.Enable(EnableCap.DepthTest); CursorVisible = false; VSync = VSyncMode.On; Camera.main = new Camera(Width / Height); AudioMaster.Init(); imguiRenderer = new ImGuiRenderer("Assets/Shaders/imgui.glsl", Width, Height); scene = new Scene("Scene"); imguiInput = new ImGuiInput(); MasterInput.Init(); MouseDown += (sender, args) => MasterInput.MouseEvent(args); MouseUp += (sender, args) => MasterInput.MouseEvent(args); MouseMove += (sender, args) => MasterInput.MouseEvent(args); }
public static void StartSystems() { MasterInput.Init(); Physics.Init(); AudioMaster.Init(); }