Difference between revisions of "SpriteBatch"

Line 12: Line 12:
 
}}
 
}}
 
== Supertypes ==
 
== Supertypes ==
[[Drawable]]
+
* [[parent::Drawable]]
[[Object]]
+
* [[parent::Object]]
 
== See Also ==
 
== See Also ==
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]

Revision as of 21:33, 26 May 2011

Store geometry in a buffer, and draw it in one call.

Constructors

love.graphics.newSpriteBatchCreates a new SpriteBatch.

Functions

Object:typeGets the type of the object as a string.
Object:typeOfChecks whether an object is of a certain type.
SpriteBatch:addAdds a sprite to the batch.
SpriteBatch:addqAdds a Quad to the batch.
SpriteBatch:clearRemoves all sprites from the buffer.

Supertypes

See Also


Other Languages