/// <summary> /// Constructor of WindowFullScreenSwitchedEventArgs class /// </summary> /// <param name="fullScreen">Fullscreen mode state</param> /// <param name="win">Window</param> public WindowFullScreenSwitchedEventArgs(bool fullScreen, Window win) { _isFullScreen = fullScreen; _window = win; }
/// <summary> /// Disposes all resources /// </summary> public void Dispose() { if(_isDisposed) return; try { foreach (SceneTree graph in _scenes.Values) graph.Dispose(); _window.Dispose(); _renderer.Dispose(); ReleaseStorage(); } finally { _scenes.Clear(); _scenes = null; _window = null; _renderer = null; _assetEngine.DestroyStorage(GraphicsConstant.Storage); } _isDisposed = true; }
/// <summary> /// Initializes resources /// </summary> private void InitializeResources() { _renderer = new Renderer(_deviceManager, _assetEngine); _window = new Window(_deviceManager, _renderer); _prefabFactory = new PrefabFactory(_assetEngine); }
/// <summary> /// Constructor of WindowDisplayModeChangedEventArgs class /// </summary> /// <param name="mode">New display mode</param> /// <param name="win">Window</param> public WindowDisplayModeChangedEventArgs(DisplayMode mode, Window win) { _mode = mode; _window = win; }