Difference between revisions of "SpriteBatchUsage"

m (Added SpriteBatch as a parent)
m
Line 1: Line 1:
 
{{newin|[[0.8.0]]|080|type=enum}}
 
{{newin|[[0.8.0]]|080|type=enum}}
Usage hints for [[SpriteBatch]]es to optimize sprite data storage on the GPU.
+
Usage hints for [[SpriteBatch]]es to optimize sprite data storage.
 
== Constants ==
 
== Constants ==
 
;dynamic: The SpriteBatch data will change repeatedly during its lifetime.  
 
;dynamic: The SpriteBatch data will change repeatedly during its lifetime.  

Revision as of 03:54, 15 December 2015

Available since LÖVE 0.8.0
This enum is not supported in earlier versions.

Usage hints for SpriteBatches to optimize sprite data storage.

Constants

dynamic
The SpriteBatch data will change repeatedly during its lifetime.
static
The SpriteBatch will not be modified after initial sprites are added.
stream
The SpriteBatch data will always change between draws.

See Also


Other Languages