Mesh:getVertexMap

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

Gets the Geometry's vertex map.

If no vertex map has been set previously (either in love.graphics.newGeometry or with Geometry:setVertexMap), then this function will return the default vertex map: {1, 2, 3, ..., Geometry:getVertexCount()}.

Function

Synopsis

vertex_map = Geometry:getVertexMap( )

Arguments

None.

Returns

table vertex_map
A table containing a list of vertex indices used when drawing.

See Also

Other Languages