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 |
Index of the first vertex of this batch's geometry in the uploaded geometry. |
PIXI.State |
State required to render this batch. |
Array<PIXI.Texture> |
Textures that are used by the display-object's in this batch. |
Map<number, number> |
Map of base-texture UIDs to texture indices into |
Methods from StdBatch
void |
Reset this batch to become "fresh"! |
void |
|
Public Properties
geometryOffset: number
Index of the first vertex of this batch's geometry in the uploaded geometry.
textureBuffer: Array<PIXI.Texture> = undefined
Textures that are used by the display-object's in this batch.
uidMap: Map<number, number> = undefined
Map of base-texture UIDs to texture indices into uSamplers
.
Public Methods
reset() → {void}
Reset this batch to become "fresh"!
Type | Description |
---|---|
void |
upload(renderer: PIXI.Renderer) → {void}
Uploads the resources required before rendering this batch. If you override
this, you must call super.upload
.
Name | Type | Description |
---|---|---|
renderer | PIXI.Renderer |
Type | Description |
---|---|
void |