Difference between revisions of "love.graphics.newSpriteBatch"

m (added size's default value)
m
Line 14: Line 14:
 
[[Category:Functions]]
 
[[Category:Functions]]
 
{{#set:Description=Creates a new SpriteBatch object.}}
 
{{#set:Description=Creates a new SpriteBatch object.}}
 +
== Other Languages ==
 +
{{i18n|love.graphics.newSpriteBatch}}

Revision as of 20:16, 18 November 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 (1000)
The max number of sprites.

Returns

SpriteBatch spriteBatch
The new SpriteBatch.

See Also

Other Languages