public WinFormsGamePlatform(Game game) : base(game) { _window = new WinFormsGameWindow(this); Window = _window; }
public override void Exit() { if (_window != null) { _window.Dispose(); _window = null !; } }
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; }
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); }
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 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; }
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); }
public override void Exit() { if (_window != null) _window.Dispose(); _window = null; Window = null; }
public override void Exit() { _window.Dispose(); _window = null; Window = null; }