A map of renderer IDs to webgl VAOs
Number of instances in this geometry, pass it to GeometrySystem.draw().
Whether the geometry is instanced.
Count of existing (not destroyed) meshes that reference this geometry.
Adds an attribute to the geometry
Note: stride and start should be undefined if you dont know them, not 0!
the name of the attribute (matching up to a shader)
the buffer that holds the data of the attribute . You can also provide an Array and a buffer will be created from it.
Optionalsize: number
the size of the attribute. If you have 2 floats per vertex (eg position x and y) this would be 2
Optionalnormalized: boolean
should the data be normalized.
Optionaltype: TYPES
what type of number is the attribute. Check PIXI.TYPES to see the ones available
Optionalstride: number
How far apart, in bytes, the start of each value is. (used for interleaving data)
Optionalstart: number
How far into the array to start reading values (used for interleaving data)
Optionalinstance: boolean
Instancing flag
Adds an index buffer to the geometry The index buffer contains integers, three for each triangle in the geometry, which reference the various attribute buffers (position, colour, UV coordinates, other UV coordinates, normal, …). There is only ONE index buffer.
Optionalbuffer: number[] | Buffer | IArrayBuffer
The buffer that holds the data of the index buffer. You can also provide an Array and a buffer will be created from it.
Destroys the geometry.
Disposes WebGL resources that are connected to this geometry.
Returns the requested attribute.
The name of the attribute required
Returns the requested buffer.
The name of the buffer required.
Get the size of the geometries, in vertices.
This function modifies the structure so that all current attributes become interleaved into a single buffer This can be useful if your model remains static as it offers a little performance boost
Staticmerge
Helper class to create a quad
Memberof
PIXI