Class SceneCameraRenderer
- Namespace
- Stride.Rendering.Compositing
- Assembly
- Stride.Engine.dll
Defines and sets a RenderView and set it up using Camera or current context camera.
[Display("Camera Renderer", null)]
public class SceneCameraRenderer : SceneRendererBase, IComponent, IReferencable, ICollectorHolder, ISceneRenderer, IRenderCollector, IGraphicsRenderer, IGraphicsRendererBase, IGraphicsRendererCore, IDisposable
- Inheritance
-
SceneCameraRenderer
- Implements
- Derived
- Inherited Members
- Extension Methods
Remarks
Since it sets a view, it is usually not shareable for multiple rendering.
Fields
Logger
public Logger Logger
Field Value
Properties
Camera
Gets or sets the camera.
public SceneCameraSlot Camera { get; set; }
Property Value
- SceneCameraSlot
The camera.
Child
public ISceneRenderer Child { get; set; }
Property Value
RenderMask
public RenderGroupMask RenderMask { get; set; }
Property Value
RenderView
public RenderView RenderView { get; }
Property Value
Methods
CollectCore(RenderContext)
Main collect method.
protected override void CollectCore(RenderContext context)
Parameters
context
RenderContext
CollectInner(RenderContext)
protected virtual void CollectInner(RenderContext renderContext)
Parameters
renderContext
RenderContext
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
DrawInner(RenderDrawContext)
protected virtual void DrawInner(RenderDrawContext renderContext)
Parameters
renderContext
RenderDrawContext
ResolveCamera(RenderContext)
Resolves camera to the one contained in slot Camera.
protected virtual CameraComponent ResolveCamera(RenderContext renderContext)
Parameters
renderContext
RenderContext
Returns
UpdateCameraToRenderView(RenderContext, RenderView, CameraComponent)
public static void UpdateCameraToRenderView(RenderContext context, RenderView renderView, CameraComponent camera)
Parameters
context
RenderContextrenderView
RenderViewcamera
CameraComponent