love.graphics.newSpriteBatch
Creates a new SpriteBatch object.
spriteBatch = love.graphics.newSpriteBatch( image, maxsprites )
image Image The Image to use for the sprites.
maxsprites (1000) number The maximum number of sprites that the SpriteBatch can contain at any given time. Since version 11.0, additional sprites added past this number will automatically grow the spritebatch.
spriteBatch SpriteBatch The new SpriteBatch.
spriteBatch = love.graphics.newSpriteBatch( image, maxsprites, usage )
image Image The Image to use for the sprites.
maxsprites (1000) number The maximum number of sprites that the SpriteBatch can contain at any given time. Since version 11.0, additional sprites added past this number will automatically grow the spritebatch.
usage ('dynamic') SpriteBatchUsage The expected usage of the SpriteBatch. The specified usage mode affects the SpriteBatch's memory usage and performance.
spriteBatch SpriteBatch The new SpriteBatch.
spriteBatch = love.graphics.newSpriteBatch( texture, maxsprites, usage )
texture Texture The Image or Canvas to use for the sprites.
maxsprites (1000) number The maximum number of sprites that the SpriteBatch can contain at any given time. Since version 11.0, additional sprites added past this number will automatically grow the spritebatch.
usage ('dynamic') SpriteBatchUsage The expected usage of the SpriteBatch. The specified usage mode affects the SpriteBatch's memory usage and performance.
spriteBatch SpriteBatch The new SpriteBatch.