public override void Dispose( ) { base.Dispose( ); OpenTKWindow.Dispose( ); IsDisposed = true; }
/// <summary> /// IDisposable implementation. /// </summary> public void Dispose() { Sprites.Destroy(); UI.Destroy(); Audio.Destroy(); Renderer.Dispose(); OpenTKWindow.Dispose(); OnDispose(); }
static void Main(string[] args) { Queue <string> argq = new Queue <string>(args); while (argq.Count > 0) { string arg = argq.Dequeue(); if (arg == "--debug") { Debugger.Launch(); } } /*ImGuiOpenTKCSWindow*/ Instance = new YourGameWindow(); Instance.Run(); Instance.Dispose(); }