Available since LÖVE 0.10.0
This function is not supported in earlier versions.
Gets the vertex format that the Mesh was created with.
format = Mesh:getVertexFormat( )
None.
table format
{attribute, ...}
.
If a Mesh wasn't created with a custom vertex format, it will have the following vertex format:
defaultformat = { {"VertexPosition", "float", 2}, -- The x,y position of each vertex. {"VertexTexCoord", "float", 2}, -- The u,v texture coordinates of each vertex. {"VertexColor", "byte", 4} -- The r,g,b,a color of each vertex. }
© 2006–2016 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/Mesh:getVertexFormat