Mesh:setVertex

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. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Mesh:setVertex( index, attributecomponent, ... ) Arguments number index The index of the the vertex you want to modify. number attributecomponent The first component of the first vertex attribute in the specified vertex. number ... Additional componen

Mesh:setTexture

Mesh:setTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. 0.9.1 (bug) Textures are not released from memory automatically when nil-ing meshes. Call Mesh:setTexture() to manually clear. Sets the texture (Image or Canvas) used when drawing the Mesh. Function Synopsis Mesh:setTexture( texture ) Arguments Texture texture The Image or Canvas to texture the Mesh with when drawing. Returns Nothing. Function Synopsis Mesh:setTexture( ) Arguments None. Re

Mesh:setImage

Mesh:setImage Available since LÖVE 0.9.0 This function is not supported in earlier versions. Removed in LÖVE 0.10.0 Use Mesh:setTexture instead. 0.9.0 (bug) Images are not released from memory automatically when nil-ing meshes. Call Mesh:setImage() to manually clear. Sets the Image used when drawing the Mesh. Function Synopsis Mesh:setImage( image ) Arguments Image image The Image to texture the Mesh with when drawing. Returns Nothing. Function Synopsis Mesh:setImage( ) Arguments

Mesh:setDrawRange

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 a subset of the total. Function Synopsis Mesh:setDrawRange( min, max ) Arguments number min The index of the first vertex to use when drawing, or the index of the first value in the vertex map to use if one is set for this Mesh. number max The index of the last vertex to use when drawing, or the index of the last value in the vertex map to use if on

Mesh:setDrawMode

Mesh:setDrawMode Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the mode used when drawing the Mesh. Function Synopsis Mesh:setDrawMode( mode ) Arguments MeshDrawMode mode The mode to use when drawing the Mesh. Returns Nothing. See Also Mesh Mesh:getDrawMode

Mesh:setAttributeEnabled

Mesh:setAttributeEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Enables or disables a specific vertex attribute in the Mesh. Vertex data from disabled attributes is not used when drawing the Mesh. Function Synopsis Mesh:setAttributeEnabled( name, enable ) Arguments string name The name of the vertex attribute to enable or disable. boolean enable Whether the vertex attribute is used when drawing this Mesh. Returns Nothing. Notes If a Mesh wasn't

Mesh:isAttributeEnabled

Mesh:isAttributeEnabled Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets whether a specific vertex attribute in the Mesh is enabled. Vertex data from disabled attributes is not used when drawing the Mesh. Function Synopsis enabled = Mesh:isAttributeEnabled( name ) Arguments string name The name of the vertex attribute to enable or disable. Returns boolean enabled Whether the vertex attribute is used when drawing this Mesh. Notes If a Mesh wasn't cr

Mesh:hasVertexColors

Mesh:hasVertexColors Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 It has been replaced by Mesh:isAttributeEnabled("VertexColor"). Gets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being love.graphics.setColor.) Per-vertex colors are enabled by default for a Mesh if at least one vertex color was not the default (255, 255, 255, 255) when the Mesh was created. Function Synopsis vertexcolors = Mesh:hasVertexColors( ) Arguments

Mesh:getVertices

Mesh:getVertices Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 Use Mesh:getVertex in a loop instead. Gets all the vertices in the Mesh. This method can be slow if the Mesh has a large number of vertices. Keep the original table used to create the Mesh around and update it when necessary instead of using this method frequently, if possible. Function Synopsis vertices = Mesh:getVertices( ) Arguments None. Returns table vertices The table filled with vertex information tables for e

Mesh:getVertexMap

Mesh:getVertexMap Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the vertex map for the Mesh. The vertex map describes the order in which the vertices are used when the Mesh is drawn. The vertices, vertex map, and mesh draw mode work together to determine what exactly is displayed on the screen. If no vertex map has been set previously via Mesh:setVertexMap, then this function will return nil in LÖVE 0.10.0+, or an empty table in 0.9.2 and older. Funct