Skip to content

InstancedRenderList

Defined in: core/utils/InstancedRenderList.ts:6

A class that creates and manages a list of render items, used to determine the rendering order based on depth.

Constructors

new InstancedRenderList()

new InstancedRenderList(): InstancedRenderList

Returns

InstancedRenderList

Properties

array

array: InstancedRenderItem[] = []

Defined in: core/utils/InstancedRenderList.ts:10

The main array that holds the list of render items for instanced rendering.

Methods

push()

push(depth, index): void

Defined in: core/utils/InstancedRenderList.ts:18

Adds a new render item to the list.

Parameters

depth

number

The depth value used for sorting or determining the rendering order.

index

number

The unique instance id of the render item.

Returns

void


reset()

reset(): void

Defined in: core/utils/InstancedRenderList.ts:37

Resets the render list by clearing the array.

Returns

void