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())); }
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())); } }
public abstract void Clear(Color color);
public abstract void Clear(Color color);