protected virtual void EndDraw() { if (graphicsDeviceManager != null) { graphicsDeviceManager.EndDraw(); } }
/// <summary>Ends the drawing of a frame. This method is preceeded by calls to Draw and BeginDraw.</summary> protected virtual void EndDraw(bool present) { if (graphicsDeviceManager != null) { graphicsDeviceManager.EndDraw(present); } }
/// <summary>Ends the drawing of a frame. This method is preceeded by calls to Draw and BeginDraw.</summary> protected virtual void EndDraw(bool present) { if (beginDrawOk) { if (GraphicsDevice.Presenter != null) { // Perform end of frame presenter operations GraphicsDevice.Presenter.EndDraw(GraphicsContext.CommandList, present); GraphicsContext.CommandList.ResourceBarrierTransition(GraphicsDevice.Presenter.BackBuffer, GraphicsResourceState.Present); } // Close command list GraphicsContext.CommandList.Close(); // Present (if necessary) graphicsDeviceManager.EndDraw(present); beginDrawOk = false; } }
protected virtual void EndDraw() { graphicsManager.EndDraw(); }