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. Added since 0.9.0

Functions

Mesh:getDrawRange Gets the range of vertices used when drawing the Mesh. Added since 0.9.1
Mesh:getImage Gets the Image used when drawing the Mesh. Added since 0.9.0
Mesh:getTexture Gets the texture (Image or Canvas) used when drawing the Mesh. Added since 0.9.1
Mesh:getVertex Gets the properties of a vertex in the Mesh. Added since 0.9.0
Mesh:getVertexCount Gets the total number of vertices in the Mesh. Added since 0.9.0
Mesh:getVertexMap Gets the vertex map for the Mesh. Added since 0.9.0
Mesh:getVertices Gets all the vertices in the Mesh. Added since 0.9.0
Mesh:hasVertexColors Gets whether per-vertex colors are used when drawing the Mesh. Added since 0.9.0
Mesh:setDrawRange Restricts the drawn vertices of the Mesh to a subset of the total. Added since 0.9.1
Mesh:setImage Sets the Image used when drawing the Mesh. Added since 0.9.0
Mesh:setTexture Sets the texture (Image or Canvas) used when drawing the Mesh. Added since 0.9.1
Mesh:setVertex Sets the properties of a vertex in the Mesh. Added since 0.9.0
Mesh:setVertexColors Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh. Added since 0.9.0
Mesh:setVertexMap Sets the vertex map for the Mesh. Added since 0.9.0
Mesh:setVertices Replaces all vertices in the Mesh with new ones. Added since 0.9.0
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. Added since 0.9.0

Supertypes

See Also