Example #1
0
 /// <summary>
 /// Set default render target to specify context.
 /// </summary>
 /// <param name="context"></param>
 /// <param name="clear"></param>
 /// <returns>Set successful?</returns>
 public bool SetDefaultRenderTargets(DeviceContext context, bool clear = true)
 {
     if (!IsInitialized)
     {
         return(false);
     }
     renderBuffer.SetDefaultRenderTargets(context);
     if (clear)
     {
         renderBuffer.ClearRenderTarget(context, ClearColor);
     }
     return(true);
 }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="buffer"></param>
 public void SetRenderTargets(IDX11RenderBufferProxy buffer)
 {
     buffer.SetDefaultRenderTargets(deviceContext);
 }