render
fun render(shader: ShaderProgram<*, *>? = null, drawMode: DrawMode = DrawMode.TRIANGLES, offset: Int = 0, count: Int = defaultCount)
Renders the mesh.
Parameters
shader
the ShaderProgram to use with this mesh. Defaults to null
.
drawMode
the DrawMode type. Defaults to DrawMode.TRIANGLES
offset
the offset of the current vertices indices to render. Defaults to 0
.
count
the total vertices to render. See defaultCount