Difference between revisions of "Mesh:getVertexMap"

m (Edited description to match new behaviour)
(No difference)

Revision as of 07:19, 10 October 2013

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