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