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.
returns self, useful for chaining.
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.
returns self, useful for chaining.
returns a clone of the geometry
a new clone of this geometry
Destroys the geometry.
disposes WebGL resources that are connected to this geometry
returns the requested attribute
the name of the attribute required
the attribute requested.
returns the requested buffer
the name of the buffer required
the buffer requested.
returns the index buffer
the index buffer.
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
returns self, useful for chaining.
Generated using TypeDoc
Helper class to create a quad
PIXI