Advanced
Readonly
attributesA record of the attributes of the geometry.
Readonly
buffersThe buffers that the attributes use
The index buffer of the geometry
the instance count of the geometry to draw
The topology of the geometry.
Readonly
uidThe unique id of the geometry.
Adds an attribute to the geometry.
The name of the attribute to add.
The attribute option to add.
Adds an index buffer to the geometry.
The index buffer to add. Can be a Buffer, TypedArray, or an array of numbers.
destroys the geometry.
destroy the buffers associated with this geometry
Returns the requested attribute.
The name of the attribute required
Returns the requested buffer.
The name of the buffer required.
Used to figure out how many vertices there are in this geometry
the number of vertices in the geometry
This class represents a geometry used for batching in the rendering system. It defines the structure of vertex attributes and index buffers for batched rendering.