MeshGeometry
class MeshGeometry(val usage: Usage, val attributes: VertexAttributes, size: Int = INITIAL_SIZE, val grow: Boolean = false)
Holds vertex and index data that can be used to render to a mesh.
Author
Colton Daily
Constructors
Link copied to clipboard
fun MeshGeometry(usage: Usage, attributes: VertexAttributes, size: Int = INITIAL_SIZE, grow: Boolean = false)
Types
Functions
Link copied to clipboard
Link copied to clipboard
Adds three indices as a "tri".
Link copied to clipboard
Add a single vertex to the geometry using a VertexView.
Link copied to clipboard
Mark this geometry as a batch update. This does nothing on its own. Use isBatchUpdate to handle.
Link copied to clipboard
Clears the indices.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Converts the array of indices based on a quad.
Link copied to clipboard
Converts the array of indices based on a triangle.
Link copied to clipboard
Link copied to clipboard
This moves the current an X amount of vertices from the current vertex index. This takes into account the vertexSize.