Difference between revisions of "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 information for a geometry.
+
Sets the properties of a vertex in the Mesh.
  
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
 
<source lang="lua">
 
<source lang="lua">
Geometry:setVertex( i, x, y, u, v, r, g, b, a )
+
Mesh:setVertex( index, x, y, u, v, r, g, b, a )
 
</source>
 
</source>
 
=== Arguments ===
 
=== Arguments ===
{{param|number|i|The index of the the vertex you want to alter the information for.}}
+
{{param|number|index|The index of the the vertex you want to modify.}}
{{param|number|x|The x vertex coordinate.}}
+
{{param|number|x|The position of the vertex (x-axis).}}
{{param|number|y|The y vertex coordinate.}}
+
{{param|number|y|The position of the vertex (y-axis).}}
{{param|number|u|The u texture coordinate.}}
+
{{param|number|u|The horizontal component of the texture coordinate.}}
{{param|number|v|The v texture coordinate.}}
+
{{param|number|v|The vertical component of the texture coordinate.}}
{{param|number|r (255)|The red color component.}}
+
{{param|number|r|The red component of the vertex's color.}}
{{param|number|g (255)|The green color component.}}
+
{{param|number|g|The green component of the vertex's color.}}
{{param|number|b (255)|The blue color component.}}
+
{{param|number|b|The blue component of the vertex's color.}}
{{param|number|a (255)|The alpha color component.}}
+
{{param|number|a|The alpha component of the vertex's color.}}
 
=== Returns ===
 
=== Returns ===
 
Nothing.
 
Nothing.
 
== See Also ==
 
== See Also ==
* [[parent::Geometry]]
+
* [[parent::Mesh]]
* [[Geometry:getVertex]]
+
* [[Mesh:getVertex]]
 +
* [[Mesh:getVertexCount]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=Sets the vertex information for a geometry.}}
+
{{#set:Description=Sets the properties of a vertex in the Mesh.}}
 
== Other Languages ==
 
== Other Languages ==
{{i18n|Geometry:setVertex}}
+
{{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