Difference between revisions of "Mesh:getVertexMap"
m (Edited description to match new behaviour) |
m |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Gets the | + | Gets the vertex map for the Mesh. The vertex map describes the order in which the vertices are used when the Mesh is drawn. The vertices, vertex map, and mesh draw mode work together to determine what exactly is displayed on the screen. |
− | If no vertex map has been set previously | + | If no vertex map has been set previously via [[Mesh:setVertexMap]], then this function will return [[nil]] in LÖVE [[0.10.0]]+, or an empty table in [[0.9.2]] and older. |
== Function == | == Function == | ||
=== Synopsis === | === Synopsis === | ||
<source lang="lua"> | <source lang="lua"> | ||
− | + | map = Mesh:getVertexMap( ) | |
</source> | </source> | ||
=== Arguments === | === Arguments === | ||
None. | None. | ||
=== Returns === | === Returns === | ||
− | {{param|table| | + | {{param|table|map|A table containing the list of vertex indices used when drawing.}} |
== See Also == | == See Also == | ||
− | * [[parent:: | + | * [[parent::Mesh]] |
− | * [[ | + | * [[Mesh:setVertexMap]] |
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets the | + | {{#set:Description=Gets the vertex map for the Mesh.}} |
== Other Languages == | == Other Languages == | ||
− | {{i18n| | + | {{i18n|Mesh:getVertexMap}} |
Latest revision as of 10:51, 1 October 2016
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the vertex map for the Mesh. The vertex map describes the order in which the vertices are used when the Mesh is drawn. The vertices, vertex map, and mesh draw mode work together to determine what exactly is displayed on the screen.
If no vertex map has been set previously via Mesh:setVertexMap, then this function will return nil in LÖVE 0.10.0+, or an empty table in 0.9.2 and older.
Function
Synopsis
map = Mesh:getVertexMap( )
Arguments
None.
Returns
table map
- A table containing the list of vertex indices used when drawing.
See Also
Other Languages
Dansk –
Deutsch –
English –
Español –
Français –
Indonesia –
Italiano –
Lietuviškai –
Magyar –
Nederlands –
Polski –
Português –
Română –
Slovenský –
Suomi –
Svenska –
Türkçe –
Česky –
Ελληνικά –
Български –
Русский –
Српски –
Українська –
עברית –
ไทย –
日本語 –
正體中文 –
简体中文 –
Tiếng Việt –
한국어
More info