Difference between revisions of "love.graphics.newSpriteBatch"

m (1 revision: Imported docs from potato.)
Line 1: Line 1:
  
 
+
Creates a new SpriteBatch object.
 
== Function ==
 
== Function ==
 
=== Synopsis ===
 
=== Synopsis ===
Line 14: Line 14:
 
* [[parent::love.graphics]]
 
* [[parent::love.graphics]]
 
[[Category:Functions]]
 
[[Category:Functions]]
{{#set:Description=}}
+
{{#set:Description=Creates a new SpriteBatch object.}}

Revision as of 16:17, 14 February 2010

Creates a new SpriteBatch object.

Function

Synopsis

spriteBatch = love.graphics.newSpriteBatch( image, size )

Arguments

Image image
The Image to use for the sprites.
number size
The max number of sprites.

Returns

SpriteBatch spriteBatch
The new SpriteBatch.

See Also