Mesh:setVertexMap

Available since LÖVE 0.9.0
This function is not supported in earlier versions.

Sets the vertex map for a Geometry. The vertex map describes the order of the vertices when they are drawn.

The vertex map allows you to re-order or reuse vertices when drawing without changing the actual vertex parameters or duplicating vertices.

Function

Synopsis

Geometry:setVertexMap( vertex_map )

Arguments

table vertex_map
A table containing a list of vertex indices to use when drawing. Values must be in the range of [1, Geometry:getVertexCount()].

Returns

Nothing.

See Also

Other Languages