public override void Clear(Color color)
        {
            if(_depthBuffer.DepthStencilView != null)
                DeviceManager.Context.ClearDepthStencilView(_depthBuffer.DepthStencilView, DepthStencilClearFlags.Depth, 1f, 0);

            if(_windowTextureBuffer.RenderTargetView != null)
                DeviceManager.Context.ClearRenderTargetView(_windowTextureBuffer.RenderTargetView, new Color4(color.ToRgba()));
        }
Example #2
0
        public override void Clear(Color color)
        {
            if (_depthBuffer.DepthStencilView != null)
            {
                DeviceManager.Context.ClearDepthStencilView(_depthBuffer.DepthStencilView, DepthStencilClearFlags.Depth, 1f, 0);
            }

            if (_renderTargetView != null)
            {
                DeviceManager.Context.ClearRenderTargetView(_renderTargetView, new Color4(color.ToRgba()));
            }
        }
Example #3
0
 public abstract void Clear(Color color);
 public abstract void Clear(Color color);