public void UnloadContent() { mRenderTarget.Dispose(); mMasterRenderer.Dispose(); mLevel.Dispose(); mContentManager.Dispose(); }
/// <summary> /// Closes the pipe and the MasterRenderer. /// </summary> /// <param name="e"></param> protected override void OnClosing(CancelEventArgs e) { IsClosing = true; MasterRenderer.Dispose(); controller.Dispose(); }
protected override void OnClosed(EventArgs e) { Renderer.Dispose(); Loader.Dispose(); OnGameClosed(); SceneManager.Dispose(); Dispose(); }