Difference between revisions of "SpriteBatch:setDrawRange"

(Created page)
 
m (0.11.0 -> 11.0)
 
Line 1: Line 1:
{{newin|[[0.11.0]]|110|type=function}}
+
{{newin|[[11.0]]|110|type=function}}
 
Restricts the drawn sprites in the SpriteBatch to a subset of the total.
 
Restricts the drawn sprites in the SpriteBatch to a subset of the total.
  

Latest revision as of 18:20, 7 May 2019

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

Other Languages