Mesh
Available since LÖVE 0.9.0 |
This type is not supported in earlier versions. |
A 2D polygon mesh used for drawing arbitrary textured shapes.
Constructors
love.graphics.newMesh | Creates a new Mesh. |
![]() |
Functions
Mesh:getDrawRange | Gets the range of vertices used when drawing the Mesh. |
![]() |
|
Mesh:getImage | Gets the Image used when drawing the Mesh. |
![]() |
|
Mesh:getTexture | Gets the texture (Image or Canvas) used when drawing the Mesh. |
![]() |
|
Mesh:getVertex | Gets the properties of a vertex in the Mesh. |
![]() |
|
Mesh:getVertexCount | Gets the total number of vertices in the Mesh. |
![]() |
|
Mesh:getVertexMap | Gets the vertex map for the Mesh. |
![]() |
|
Mesh:getVertices | Gets all the vertices in the Mesh. |
![]() |
|
Mesh:hasVertexColors | Gets whether per-vertex colors are used when drawing the Mesh. |
![]() |
|
Mesh:setDrawRange | Restricts the drawn vertices of the Mesh to a subset of the total. |
![]() |
|
Mesh:setImage | Sets the Image used when drawing the Mesh. |
![]() |
|
Mesh:setTexture | Sets the texture (Image or Canvas) used when drawing the Mesh. |
![]() |
|
Mesh:setVertex | Sets the properties of a vertex in the Mesh. |
![]() |
|
Mesh:setVertexColors | Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh. |
![]() |
|
Mesh:setVertexMap | Sets the vertex map for the Mesh. |
![]() |
|
Mesh:setVertices | Replaces all vertices in the Mesh with new ones. |
![]() |
|
Object:type | Gets the type of the object as a string. | ||
Object:typeOf | Checks whether an object is of a certain type. |
Enums
MeshDrawMode | How a Mesh's vertices are used when drawing. |
![]() |
Supertypes
See Also
Category: