Available since LÖVE 0.9.0
This function is not supported in earlier versions.
Gets the properties of a vertex in the Mesh.
Available since LÖVE 0.10.0
This variant is not supported in earlier versions.
attributecomponent, ... = Mesh:getVertex( index )
number index
number attributecomponent
number ...
The values are returned 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 return two position numbers, two texture coordinate numbers, and four color components: x, y, u, v, r, g, b, a.
Gets the vertex components of a Mesh that wasn't created with a custom vertex format.
x, y, u, v, r, g, b, a = Mesh:getVertex( index )
number index
number x
number y
number u
number v
number r
number g
number b
number a
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Mesh:getVertex