Skip to main content

Function: buildTextCameraCommands()

buildTextCameraCommands(world, textComponents, textMeshes, textPositions, textEntities, cullingMask, commands): void

Defined in: text/rendering/glyph-quad.ts:230

Builds render commands for every visible text entity a camera should draw, mirroring render-system.ts's own buildCameraCommands for sprites: skips disabled text and text whose mesh renderable category doesn't match cullingMask, then delegates to pushTextRenderCommands.

Parameters​

world​

EcsWorld

The ECS world, used to look up each entity's optional rotation/scale components.

textComponents​

TextEcsComponent[]

Each queried entity's TextEcsComponent.

textMeshes​

TextMeshEcsComponent[]

Each queried entity's TextMeshEcsComponent.

textPositions​

PositionEcsComponent[]

Each queried entity's PositionEcsComponent.

textEntities​

readonly number[]

The queried entity ids, parallel to the arrays above.

cullingMask​

number

The camera's culling mask.

commands​

RenderCommand[]

The render command buffer to push into.

Returns​

void