Esempio n. 1
0
 /// <summary>
 /// Clears the render target.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="clearBackBuffer">if set to <c>true</c> [clear back buffer].</param>
 /// <param name="clearDepthStencilBuffer">if set to <c>true</c> [clear depth stencil buffer].</param>
 public void ClearRenderTarget(DeviceContext context, bool clearBackBuffer, bool clearDepthStencilBuffer)
 {
     if (CurrentRenderHost != null)
     {
         CurrentRenderHost.ClearRenderTarget(context, clearBackBuffer, clearDepthStencilBuffer);
     }
 }
 /// <summary>
 /// Clears the render target.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <param name="clearBackBuffer">if set to <c>true</c> [clear back buffer].</param>
 /// <param name="clearDepthStencilBuffer">if set to <c>true</c> [clear depth stencil buffer].</param>
 public void ClearRenderTarget(DeviceContextProxy context, bool clearBackBuffer, bool clearDepthStencilBuffer)
 {
     CurrentRenderHost?.ClearRenderTarget(context, clearBackBuffer, clearDepthStencilBuffer);
 }