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.
Available since LÖVE 11.0 |
This variant is not supported in earlier versions. |
Mesh:setDrawRange( start, count )
number start
number count
Nothing.
Allows all vertices in the Mesh to be drawn.
Mesh:setDrawRange( )
None.
Nothing.
Removed in LÖVE 11.0 |
This variant is not supported in that and later versions. |
Mesh:setDrawRange( min, max )
number min
number max
Nothing.
If a vertex map is used with the Mesh, this method will set a subset of the values in the vertex map array to use, instead of a subset of the total vertices in the Mesh.
For example, if Mesh:setVertexMap(1, 2, 3, 1, 3, 4)
and Mesh:setDrawRange(4, 2)
are called, vertices 1, 3, and 4 will be drawn.