SpriteBatch:setDrawRange

Available since LÖVE 0.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

Other Languages