SpriteBatch:getColor

SpriteBatch:getColor Available since LÖVE 0.9.0 This method is not supported in earlier versions. Gets the color that will be used for the next add and set operations. If no color has been set with SpriteBatch:setColor or the current SpriteBatch color has been cleared, this method will return nil. Function Synopsis r, g, b, a = SpriteBatch:getColor( ) Arguments None. Returns number r The red component (0-255). number g The green component (0-255). number b The blue component (0-255).

SpriteBatch:getCount

SpriteBatch:getCount Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the number of sprites currently in the SpriteBatch. Function Synopsis count = SpriteBatch:getCount( ) Arguments None. Returns number count The number of sprites currently in the batch. See Also SpriteBatch SpriteBatch:getBufferSize

SpriteBatch:getImage

SpriteBatch:getImage Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.10.0 Use SpriteBatch:getTexture instead. Returns the image used by the SpriteBatch. Function Synopsis image = SpriteBatch:getImage( ) Arguments None Returns Image image The image for the sprites. See Also SpriteBatch SpriteBatch:setImage

SpriteBatch:getTexture

SpriteBatch:getTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture (Image or Canvas) used by the SpriteBatch. Function Synopsis texture = SpriteBatch:getTexture( ) Arguments None. Returns Texture texture The Image or Canvas used by the SpriteBatch. See Also SpriteBatch SpriteBatch:setTexture

SpriteBatch:lock

SpriteBatch:lock This has been changed to SpriteBatch:bind

SpriteBatch:set

SpriteBatch:set Available since LÖVE 0.8.0 This method is not supported in earlier versions. Changes a sprite in the batch. This requires the identifier returned by add and addq. Function Synopsis SpriteBatch:set( id, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments number id The identifier of the sprite that will be changed. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (

SpriteBatch:setBufferSize

SpriteBatch:setBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets the maximum number of sprites the SpriteBatch can hold. Existing sprites in the batch (up to the new maximum) will not be cleared when this function is called. This function can be slow if it is called every frame, such as from love.update or love.draw. Function Synopsis SpriteBatch:setBufferSize( size ) Arguments number size The new maximum number of sprites the batch can hold.

SpriteBatch:setColor

SpriteBatch:setColor Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets the color that will be used for the next add and set operations. Calling the function without arguments will disable all per-sprite colors for the SpriteBatch. In version 0.9.2 and older, the global color set with love.graphics.setColor will not work on the SpriteBatch if any of the sprites has its own color. Function Synopsis SpriteBatch:setColor( r, g, b, a ) Arguments number r The am

SpriteBatch:setImage

SpriteBatch:setImage Available since LÖVE 0.7.2 This method is not supported in earlier versions. Removed in LÖVE 0.10.0 Use SpriteBatch:setTexture instead. Replaces the image used for the sprites. Function Synopsis SpriteBatch:setImage( image ) Arguments Image image The new Image to use for the sprites. Returns Nothing. See Also SpriteBatch SpriteBatch:getImage

SpriteBatch:setq

SpriteBatch:setq Available since LÖVE 0.8.0 This method is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been merged into SpriteBatch:set. Changes a sprite with a quad in the batch. This requires the identifier returned by add and addq. Function Synopsis SpriteBatch:setq( id, quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments number id The identifier of the sprite that will be changed. Quad quad The quad used on the image of the batch. number x The position to draw