PIXI.BatchGeometry

class BatchGeometry extends PIXI.Geometry

Geometry used to batch standard PIXI content (e.g. Mesh, Sprite, Graphics objects).

Constructor


new PIXI.BatchGeometry(_static: boolean) → {}
Parameters:
Name Type Attributes Default Description
_static boolean

<optional>

false

Optimization flag, where false is updated every frame, true doesn't change frame-to-frame.

Summary


Properties inherited from Geometry

object
glVertexArrayObjects
number
instanceCount = 1
boolean
instanced

Whether the geometry is instanced.

number
refCount

Count of existing (not destroyed) meshes that reference this geometry.

Methods inherited from Geometry

this
addAttribute(id: string, buffer: PIXI.Buffer | number<Array>, size: number, normalized: boolean, type: PIXI.TYPES, stride: number, start: number, instance: boolean)
PIXI.Geometry
addIndex(buffer: PIXI.Buffer | number<Array>)
PIXI.Geometry
clone()
void
destroy()

Destroys the geometry.

void
dispose()

Disposes WebGL resources that are connected to this geometry.

PIXI.Attribute
getAttribute(id: string)
PIXI.Buffer
getBuffer(id: string)
PIXI.Buffer
getIndex()
number
getSize()

Get the size of the geometries, in vertices.

PIXI.Geometry
interleave()

Protected Properties


_buffer BatchGeometry.ts:11
protected _buffer: PIXI.Buffer

Buffer used for position, color, texture IDs

_indexBuffer BatchGeometry.ts:17
protected _indexBuffer: PIXI.Buffer

Index buffer data


Powered by webdoc!