{{newin|[[0.9.1]]|091|type=function}}
Restricts the drawn vertices of the Mesh to a subset of the total.

== Function ==
{{newin|[[11.0]]|110|type=variant}}
=== Synopsis ===
<source lang="lua">
Mesh:setDrawRange( start, count )
</source>
=== Arguments ===
{{param|number|start|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.}}
{{param|number|count|The number of vertices to use when drawing, or number of values in the vertex map to use if one is set for this Mesh.}}
=== Returns ===
Nothing.

== Function ==
Allows all vertices in the Mesh to be drawn.
=== Synopsis ===
<source lang="lua">
Mesh:setDrawRange( )
</source>
=== Arguments ===
None.
=== Returns ===
Nothing.

== Function ==
{{oldin|[[11.0]]|110|type=variant}}
=== Synopsis ===
<source lang="lua">
Mesh:setDrawRange( min, max )
</source>
=== Arguments ===
{{param|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.}}
{{param|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 one is set for this Mesh.}}
=== Returns ===
Nothing.

== Notes ==
If a [[Mesh:setVertexMap|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 <code>Mesh:setVertexMap(1, 2, 3, 1, 3, 4)</code> and <code>Mesh:setDrawRange(4, 2)</code> are called, vertices 1, 3, and 4 will be drawn.

== See Also ==
* [[parent::Mesh]]
* [[Mesh:getDrawRange]]
* [[love.graphics.draw]]
[[Category:Functions]]
{{#set:Description=Restricts the drawn vertices of the Mesh to a subset of the total.}}
== Other Languages ==
{{i18n|Mesh:setDrawRange}}