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: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: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: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: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:setVertexAttribute

Mesh:setVertexAttribute Available since LÖVE 0.10.0 This function is not supported in earlier versions. Sets the properties of a specific attribute within a vertex in the Mesh. Meshes without a custom vertex format specified in love.graphics.newMesh have position as their first attribute, texture coordinates as their second attribute, and color as their third attribute. Function Synopsis Mesh:setVertexAttribute( vertexindex, attributeindex, value1, value2, ... ) Arguments number vertexind

Mesh:setVertexColors

Mesh:setVertexColors Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 It has been replaced by Mesh:setAttributeEnabled("VertexColor", enable). Sets 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 Mesh:setVertexColors( on ) Arguments bo

Mesh:setVertexMap

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 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. The vertex map allows you to re-order or reuse vertices when drawing without changing the actual vertex parameters or duplicating vertices. It is especially use

Mesh:setVertices

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 new ones. The total number of vertices in a Mesh cannot be changed after it has been created. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Mesh:setVertices( vertices, startvertex ) Arguments table vertices The table filled with vertex information tables for each vertex, in the form of {vertex,

MotorJoint:getAngularOffset

MotorJoint:getAngularOffset Available since LÖVE 0.9.0 This method is not supported in earlier versions. Gets the target angular offset between the two Bodies the Joint is attached to. Function Synopsis angleoffset = MotorJoint:getAngularOffset( ) Arguments None. Returns number angleoffset The target angular offset in radians: the second body's angle minus the first body's angle. See Also MotorJoint MotorJoint:setAngularOffset