class render::SceneHandleRenderer

Inherits: RendererExtension

Performs rendering of handles on the render thread, managed by the parent SceneHandles.

Public

Constructors

SceneHandleRenderer

SceneHandleRenderer()

Private

Methods

Initialize

void Initialize(const Any &data) override

Called when the renderer extension is first initialized.

Destroy

void Destroy() override

Called just before the renderer extension is destroyed.

Check

RendererExtensionRequest Check(const Camera &camera) override

Returns true if the render() method should be called for the provided camera.

Render

void Render(const Camera &camera, const RendererViewContext &viewContext) override

Called at the point at which rendering should be performed for the provided camera.

Relevant render targets are guaranteed to be already bound to the render API, depending on the RenderLocation. Note that actual structure of the render targets depends on the active renderer.

camera
Camera through which the renderer is currently rendering.
viewContext
Additional information about the currently rendered view.

QueueForDraw

void QueueForDraw(const SPtr<Camera> &camera, Vector<MeshData> &meshes)

Queues new data for rendering.

camera
Camera to render to.
meshes
Meshes to render.

ClearQueued

void ClearQueued()

Deletes any meshes queued for rendering.

Fields

mQueuedData

Vector<QueuedData> mQueuedData

mMaterialParameterAdapters

Vector<SPtr<MaterialParameterAdapter>>[3] mMaterialParameterAdapters

mTypeCounters

u32[3] mTypeCounters

mMaterials

SPtr<Material>[3] mMaterials

mClearMaterial

SPtr<Material> mClearMaterial