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

Functions

Mesh:attachAttribute Attaches a vertex attribute from a different Mesh onto this Mesh, for use when drawing. 0.10.0
Mesh:flush Immediately sends all modified vertex data in the Mesh to the graphics card. 0.10.0
Mesh:getDrawMode Gets the mode used when drawing the Mesh. 0.9.0
Mesh:getDrawRange Gets the range of vertices used when drawing the Mesh. 0.9.1
Mesh:getImage Gets the Image used when drawing the Mesh. 0.9.0 0.10.0
Mesh:getTexture Gets the texture (Image or Canvas) used when drawing the Mesh. 0.9.1
Mesh:getVertex Gets the properties of a vertex in the Mesh. 0.9.0
Mesh:getVertexAttribute Gets the properties of a specific attribute within a vertex in the Mesh. 0.10.0
Mesh:getVertexCount Gets the total number of vertices in the Mesh. 0.9.0
Mesh:getVertexFormat Gets the vertex format that the Mesh was created with. 0.10.0
Mesh:getVertexMap Gets the vertex map for the Mesh. 0.9.0
Mesh:getVertices Gets all the vertices in the Mesh. 0.9.0 0.10.0
Mesh:hasVertexColors Gets whether per-vertex colors are used when drawing the Mesh. 0.9.0 0.10.0
Mesh:isAttributeEnabled Gets whether a specific vertex attribute in the Mesh is enabled. 0.10.0
Mesh:setAttributeEnabled Enables or disables a specific vertex attribute in the Mesh. 0.10.0
Mesh:setDrawMode Sets the mode used when drawing the Mesh. 0.9.0
Mesh:setDrawRange Restricts the drawn vertices of the Mesh to a subset of the total. 0.9.1
Mesh:setImage Sets the Image used when drawing the Mesh. 0.9.0 0.10.0
Mesh:setTexture Sets the texture (Image or Canvas) used when drawing the Mesh. 0.9.1
Mesh:setVertex Sets the properties of a vertex in the Mesh. 0.9.0
Mesh:setVertexAttribute Sets the properties of a specific attribute within a vertex in the Mesh. 0.10.0
Mesh:setVertexColors Sets whether per-vertex colors are used instead of the constant color when drawing the Mesh. 0.9.0 0.10.0
Mesh:setVertexMap Sets the vertex map for the Mesh. 0.9.0
Mesh:setVertices Replaces a range of vertices in the Mesh with new ones. 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. 0.9.0

Supertypes

See Also


Mesh:getVertexCount
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:getVertexCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the total number of vertices in the

2025-01-10 15:47:30
Mesh:getDrawRange
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:getDrawRange Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the range of vertices used when drawing

2025-01-10 15:47:30
Mesh:hasVertexColors
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:hasVertexColors Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 It has been replaced by

2025-01-10 15:47:30
Mesh:getVertexFormat
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:getVertexFormat Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the vertex format that the Mesh was

2025-01-10 15:47:30
Mesh:isAttributeEnabled
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:isAttributeEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether a specific vertex attribute

2025-01-10 15:47:30
Mesh:setVertices
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:setVertices Available since LÖVE 0.9.0 This function is not supported in earlier versions. Replaces a range of vertices in the Mesh with

2025-01-10 15:47:30
Mesh:getTexture
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:getTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture (

2025-01-10 15:47:30
Mesh:setVertexMap
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:setVertexMap Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the vertex map for the Mesh. The vertex

2025-01-10 15:47:30
Mesh:setVertex
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:setVertex Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the properties of a vertex in the Mesh.

2025-01-10 15:47:30
Mesh:setDrawRange
  • References/Game Development/LÖVE/love.graphics/Mesh

Mesh:setDrawRange Available since LÖVE 0.9.1 This function is not supported in earlier versions. Restricts the drawn vertices of the Mesh to

2025-01-10 15:47:30