Difference between revisions of "Mesh:getVertex"
(Geometry:getVertex -> Mesh:getVertex) |
m |
||
Line 1: | Line 1: | ||
{{newin|[[0.9.0]]|090|type=function}} | {{newin|[[0.9.0]]|090|type=function}} | ||
− | Gets | + | Gets the properties of a vertex in the Mesh. |
== Function == | == Function == | ||
Line 23: | Line 23: | ||
* [[Mesh:getVertexCount]] | * [[Mesh:getVertexCount]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | {{#set:Description=Gets | + | {{#set:Description=Gets the properties of a vertex in the Mesh.}} |
== Other Languages == | == Other Languages == | ||
{{i18n|Mesh:getVertex}} | {{i18n|Mesh:getVertex}} |
Revision as of 04:33, 10 October 2013
Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the properties of a vertex in the Mesh.
Function
Synopsis
x, y, u, v, r, g, b, a = Mesh:getVertex( index )
Arguments
number index
- The index of the the vertex you want to retrieve the information for.
Returns
number x
- The position of the vertex (x-axis).
number y
- The position of the vertex (y-axis).
number u
- The horizontal component of the texture coordinate.
number v
- The vertical component of the texture coordinate.
number r
- The red component of the vertex's color.
number g
- The green component of the vertex's color.
number b
- The blue component of the vertex's color.
number a
- The alpha component of the vertex's color.
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