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