Difference between revisions of "Mesh:setVertexMap"

(Created page)
 
m (Prettified link)
Line 10: Line 10:
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|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]]].}}
+
{{param|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|Geometry:getVertexCount()]]].}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.

Revision as of 22:28, 16 August 2013

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