Class ClearRenderer
- Namespace
- Stride.Rendering.Compositing
- Assembly
- Stride.Rendering.dll
A renderer to clear a render frame.
[Display("Clear", null)]
public class ClearRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
ClearRenderer
- Implements
- Inherited Members
- Extension Methods
Constructors
ClearRenderer()
Initializes a new instance of the ClearRenderer class.
public ClearRenderer()
Properties
ClearFlags
Gets or sets the clear flags.
[DataMember(10)]
[Display("Clear Flags", null)]
public ClearRendererFlags ClearFlags { get; set; }
Property Value
- ClearRendererFlags
The clear flags.
Color
Gets or sets the clear color.
[DataMember(20)]
[Display("Color", null)]
public Color4 Color { get; set; }
Property Value
- Color4
The clear color.
Depth
Gets or sets the depth value used to clear the depth stencil buffer.
[DataMember(30)]
[Display("Depth Value", null)]
public float Depth { get; set; }
Property Value
- float
The depth value used to clear the depth stencil buffer.
Stencil
Gets or sets the stencil value used to clear the depth stencil buffer.
[DataMember(40)]
[Display("Stencil Value", null)]
public byte Stencil { get; set; }
Property Value
- byte
The stencil value used to clear the depth stencil buffer.
Methods
DrawCore(RenderContext, RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected override void DrawCore(RenderContext context, RenderDrawContext drawContext)
Parameters
context
RenderContextdrawContext
RenderDrawContext