상속: Microsoft.Xna.Framework.GameWindow, IDisposable
예제 #1
0
        public WinFormsGamePlatform(Game game)
            : base(game)
        {
            _window = new WinFormsGameWindow(this);

            Window = _window;
        }
 public override void Exit()
 {
     if (_window != null)
     {
         _window.Dispose();
         _window = null !;
     }
 }
예제 #3
0
        public WinFormsGamePlatform(Game game)
            : base(game)
        {
            _keyState = new List <XnaKeys>();
            Keyboard.SetKeys(_keyState);

            _window          = new WinFormsGameWindow(this);
            _window.KeyState = _keyState;

            Mouse.SetWindows(_window._form);

            Window = _window;
        }
예제 #4
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window  = null;
                }
            }

            base.Dispose(disposing);
        }
예제 #5
0
        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);
        }
예제 #6
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);
        }
예제 #7
0
        public WinFormsGamePlatform(Game game)
            : base(game)
        {
            _keyState = new List<XnaKeys>();
            Keyboard.SetKeys(_keyState);

            _window = new WinFormsGameWindow(this);
            _window.KeyState = _keyState;

            Mouse.SetWindows(_window._form);

            Window = _window;
        }
예제 #8
0
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window = null;
                }
                Microsoft.Xna.Framework.Media.MediaManagerState.CheckShutdown();
            }
            Keyboard.SetKeys(null);

            base.Dispose(disposing);
        }
예제 #9
0
 public override void Exit()
 {
     if (_window != null)
         _window.Dispose();
     _window = null;
     Window = null;
 }
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                if (_window != null)
                {
                    _window.Dispose();
                    _window = null;
                    Window = null;
                }
            }

            base.Dispose(disposing);
        }
 public override void Exit()
 {
     _window.Dispose();
     _window = null;
     Window  = null;
 }
예제 #12
0
 public override void Exit()
 {
     _window.Dispose();
     _window = null;
     Window = null;
 }