Dispose() public method

public Dispose ( ) : void
return void
Esempio n. 1
0
 public override void Exit()
 {
     if (_window != null)
     {
         _window.Dispose();
     }
     _window = null;
     Window  = null;
 }
Esempio n. 2
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window  = null;
                }
            }

            base.Dispose(disposing);
        }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window  = null;

                    Microsoft.Xna.Framework.Media.MediaManagerState.CheckShutdown();
                }
            }

            base.Dispose(disposing);
        }
Esempio n. 4
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window  = null;
                }

                // Make sure we dispose the graphics system.
                var graphicsDeviceManager = Game.graphicsDeviceManager;
                if (graphicsDeviceManager != null)
                {
                    graphicsDeviceManager.Dispose();
                }
            }

            base.Dispose(disposing);
        }
 public override void Exit()
 {
     _window.Dispose();
     _window = null;
     Window  = null;
 }