SpriteBatch:setDrawRange

Available since LÖVE 11.0
This function is not supported in earlier versions.

Restricts the drawn sprites in the SpriteBatch to a subset of the total.

Function

Synopsis

SpriteBatch:setDrawRange( start, count )

Arguments

number start
The index of the first sprite to draw. Index 1 corresponds to the first sprite added with SpriteBatch:add.
number count
The number of sprites to draw.

Returns

Nothing.

Function

Allows all sprites in the SpriteBatch to be drawn.

Synopsis

SpriteBatch:setDrawRange( )

Arguments

None.

Returns

Nothing.

See Also

© 2006–2020 LÖVE Development Team
Licensed under the GNU Free Documentation License, Version 1.3.
https://love2d.org/wiki/SpriteBatch:setDrawRange