nw::gfx::BasicRenderQueue::EnqueueCommand Member Function

Syntax

ElementType * EnqueueCommand(
     RenderCommand * command,
     ResMaterial::TranslucencyKind translucencyKind,
     u8 priority,
     u8 layerId
);

Arguments

Name Description
in command Command called at time of rendering.
in translucencyKind Type of translucency.
in priority Render priority of the mesh.
in layerId ID that is given highest priority when sorting render elements. This is used to control rendering of layers and billboarding.

Return Values

Description

Adds a command to the queue.

Because the command set here is called at time of rendering, make sure the command is maintained until time of rendering. An illegal function call will result if the command is destroyed before rendering by a local variables or so on.


CONFIDENTIAL