Available since LÖVE 0.9.0 |
This function is not supported in earlier versions. |
Gets the properties of a vertex in the Mesh.
In versions prior to 11.0, color and byte component values were within the range of 0 to 255 instead of 0 to 1.
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