Difference between revisions of "love.graphics.newSpriteBatch"
m (1 revision: Importing from potato (again).) |
m (added size's default value) |
||
Line 1: | Line 1: | ||
− | |||
Creates a new SpriteBatch object. | Creates a new SpriteBatch object. | ||
== Function == | == Function == | ||
Line 8: | Line 7: | ||
=== Arguments === | === Arguments === | ||
{{param|Image|image|The Image to use for the sprites.}} | {{param|Image|image|The Image to use for the sprites.}} | ||
− | {{param|number|size|The max number of sprites.}} | + | {{param|number|size (1000)|The max number of sprites.}} |
=== Returns === | === Returns === | ||
{{param|SpriteBatch|spriteBatch|The new SpriteBatch.}} | {{param|SpriteBatch|spriteBatch|The new SpriteBatch.}} |
Revision as of 16:45, 3 April 2010
Creates a new SpriteBatch object.
Function
Synopsis
spriteBatch = love.graphics.newSpriteBatch( image, size )
Arguments
Returns
SpriteBatch spriteBatch
- The new SpriteBatch.