Ejemplo n.º 1
0
 protected virtual void EndDraw()
 {
     if (graphicsDeviceManager != null)
     {
         graphicsDeviceManager.EndDraw();
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 4
0
 protected virtual void EndDraw()
 {
     graphicsManager.EndDraw();
 }