コード例 #1
0
 /// <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;
 }
コード例 #2
0
ファイル: GraphicsEngine.cs プロジェクト: Julien-Pires/Pulsar
        /// <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;
        }
コード例 #3
0
ファイル: GraphicsEngine.cs プロジェクト: Julien-Pires/Pulsar
 /// <summary>
 /// Initializes resources
 /// </summary>
 private void InitializeResources()
 {
     _renderer = new Renderer(_deviceManager, _assetEngine);
     _window = new Window(_deviceManager, _renderer);
     _prefabFactory = new PrefabFactory(_assetEngine);
 }
コード例 #4
0
 /// <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;
 }