Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Sets the properties of a vertex in the Mesh.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
Mesh:setVertex( index, attributecomponent, ... )
number indexnumber attributecomponentnumber ...Nothing.
The arguments are in the same order as the vertex attributes in the Mesh's vertex format. A standard Mesh that wasn't created with a custom vertex format will use two position numbers, two texture coordinate numbers, and four color components per vertex: x, y, u, v, r, g, b, a.
If no value is supplied for a specific vertex attribute component, it will be set to a default value of 0 if its data type is "float", or 255 if its data type is "byte".
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
Mesh:setVertex( index, vertex )
number indextable vertex{attributecomponent, ...}.
Nothing.
The table indices are in the same order as the vertex attributes in the Mesh's vertex format. A standard Mesh that wasn't created with a custom vertex format will use two position numbers, two texture coordinate numbers, and four color components per vertex: x, y, u, v, r, g, b, a.
If no value is supplied for a specific vertex attribute component, it will be set to a default value of 0 if its data type is "float", or 255 if its data type is "byte".
Sets the vertex components of a Mesh that wasn't created with a custom vertex format.
Mesh:setVertex( index, x, y, u, v, r, g, b, a )
number indexnumber xnumber ynumber unumber vnumber r (255)number g (255)number b (255)number a (255)Nothing.
Sets the vertex components of a Mesh that wasn't created with a custom vertex format.
Mesh:setVertex( index, vertex )
number indextable vertexnumber [1]number [2]number [3]number [4]number [5] (255)number [6] (255)number [7] (255)number [8] (255)Nothing.
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Mesh:setVertex