Table of Contents

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

Logger

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

ISceneRenderer

RenderMask

public RenderGroupMask RenderMask { get; set; }

Property Value

RenderGroupMask

RenderView

public RenderView RenderView { get; }

Property Value

RenderView

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 RenderContext
drawContext 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

CameraComponent

UpdateCameraToRenderView(RenderContext, RenderView, CameraComponent)

public static void UpdateCameraToRenderView(RenderContext context, RenderView renderView, CameraComponent camera)

Parameters

context RenderContext
renderView RenderView
camera CameraComponent