nw::gfx::ISceneUpdater::SubmitView Member Function

Syntax

virtual void SubmitView(
     RenderQueue * renderQueue,
     SceneContext * sceneContext,
     const Camera & camera,
     u8 layerId,
     RenderSortMode renderSortMode = ALL_MESH_BASE_SORT
) = 0;

Arguments

Name Description
in renderQueue Queue where the elements that make up the render targets are collected.
in sceneContext Scene context.
in camera Camera.
in layerId ID that is given highest priority when sorting render elements. This is used to control rendering of layers and billboarding.
in renderSortMode The render sort mode.

Return Values

None.

Description

Updates a scene based on the camera's visual range, and builds the render queue.

The layerId argument is intended to be used for the following purposes.

· Controlling the render order for full-screen effects, HUD, and scenes
· Splitting up rendering into multiple viewports
· Controlling the render order within a viewport

Delimit the priorities above for each bit width, and create your layerID values so that they take up 8 bits or less of space.


CONFIDENTIAL