StdBatch

class StdBatch

Resources that need to be uploaded to WebGL to render one batch.

To customize batches, you must create your own batch factory by extending the StdBatchFactory class.

Summary


Properties from StdBatch

number
geometryOffset

Index of the first vertex of this batch's geometry in the uploaded geometry.

PIXI.State
state = undefined

State required to render this batch.

Array<PIXI.Texture>
textureBuffer = undefined

Textures that are used by the display-object's in this batch.

Map<number, number>
uidMap = undefined

Map of base-texture UIDs to texture indices into uSamplers.

Methods from StdBatch

void
reset()

Reset this batch to become "fresh"!

void
upload(renderer: PIXI.Renderer)

Public Properties


geometryOffset StdBatch.ts:25
geometryOffset: number

Index of the first vertex of this batch's geometry in the uploaded geometry.

state StdBatch.ts:46
state: PIXI.State = undefined

State required to render this batch.

textureBuffer StdBatch.ts:32
textureBuffer: Array<PIXI.Texture> = undefined

Textures that are used by the display-object's in this batch.

uidMap StdBatch.ts:39
uidMap: Map<number, number> = undefined

Map of base-texture UIDs to texture indices into uSamplers.

Public Methods


reset StdBatch.ts:70
reset() → {void}

Reset this batch to become "fresh"!

Returns:
Type Description
void
upload StdBatch.ts:54
upload(renderer: PIXI.Renderer) → {void}

Uploads the resources required before rendering this batch. If you override this, you must call super.upload.

Parameters:
Name Type Description
renderer PIXI.Renderer
Returns:
Type Description
void

Powered by webdoc!