Beispiel #1
0
 protected virtual void EndDraw()
 {
     if (graphicsDeviceManager != null)
     {
         graphicsDeviceManager.EndDraw();
     }
 }
Beispiel #2
0
 /// <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);
     }
 }
Beispiel #3
0
        /// <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;
            }
        }
Beispiel #4
0
 protected virtual void EndDraw()
 {
     graphicsManager.EndDraw();
 }