SceneRendererBase Class
Namespace: Stride.Rendering.CompositingAssembly: Stride.Rendering.dll
Describes the code part of a
Derived from SceneRendererBase: ClearRenderer DebugRenderer DelegateSceneRenderer ForceAspectRatioSceneRenderer ForwardRenderer RenderTextureSceneRenderer SceneCameraRenderer SceneRendererCollection SingleStageRenderer
[DataContract(Inherited = true)]
public abstract class SceneRendererBase : RendererCoreBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
Name | Description | |
---|---|---|
Constructors | ||
SceneRendererBase() | ||
Properties | ||
Id | ||
Methods | ||
Collect(RenderContext) | Executed before extract. Should create views, update RenderStages, etc... |
|
CollectCore(RenderContext) | Main collect method. |
|
Draw(RenderDrawContext) | Draws this renderer with the specified context. See remarks. |
|
DrawCore(RenderContext, RenderDrawContext) | Main drawing method for this renderer that must be implemented. |
Constructors
SceneRendererBase()
protected SceneRendererBase()
Properties
Id
[DataMember(-100)]
[Display(null, null, Browsable = false)]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Methods
Collect(RenderContext)
Executed before extract. Should create views, update RenderStages, etc...
public void Collect(RenderContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context |
CollectCore(RenderContext)
Main collect method.
protected virtual void CollectCore(RenderContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context |
Draw(RenderDrawContext)
Draws this renderer with the specified context. See remarks.
public void Draw(RenderDrawContext context)
Parameters
Type | Name | Description |
---|---|---|
RenderDrawContext | context | The context. |
Remarks
The method Initialize(RenderContext) should be called automatically by the implementation if it was not done before the first draw.
DrawCore(RenderContext, RenderDrawContext)
Main drawing method for this renderer that must be implemented.
protected abstract void DrawCore(RenderContext context, RenderDrawContext drawContext)
Parameters
Type | Name | Description |
---|---|---|
RenderContext | context | |
RenderDrawContext | drawContext |