Exemple #1
0
        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();
        }
Exemple #3
0
        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();
        }