Text:addf

Text:addf Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional formatted / colored text to the Text object at the specified position. Function Synopsis index = Text:addf( textstring, wraplimit, alignmode, x, y, angle, sx, sy, ox, oy, kx, ky ) Arguments string textstring The text to add to the object. number wraplimit The maximum width in pixels of the text before it gets automatically wrapped to a new line. AlignMode align The alignment of the

Text:add

Text:add Available since LÖVE 0.10.0 This function is not supported in earlier versions. Adds additional colored text to the Text object at the specified position. Function Synopsis index = Text:add( textstring, x, y, angle, sx, sy, ox, oy, kx, ky ) Arguments string textstring The text to add to the object. number x The position of the new text on the x-axis. number y The position of the new text on the y-axis. number angle (0) The orientation of the new text in radians. number sx (1)

SpriteBatch:unlock

SpriteBatch:unlock This has been changed to SpriteBatch:unbind

SpriteBatch:unbind

SpriteBatch:unbind Available since LÖVE 0.8.0 It has been renamed from SpriteBatch:unlock. Removed in LÖVE 0.10.0 It happens automatically since version 0.9.2. Use SpriteBatch:flush if absolutely necessary.. Unbinds the SpriteBatch. All SpriteBatch:bind calls should have a matching SpriteBatch:unbind after the batch has been updated. Function Synopsis SpriteBatch:unbind( ) Arguments None. Returns Nothing. See Also SpriteBatch SpriteBatch:bind

SpriteBatch:setTexture

SpriteBatch:setTexture Available since LÖVE 0.9.1 This function is not supported in earlier versions. Sets the texture (Image or Canvas) used for the sprites in the batch, when drawing. Function Synopsis SpriteBatch:setTexture( texture ) Arguments Texture texture The new Image or Canvas to use for the sprites in the batch. Returns Nothing. See Also SpriteBatch SpriteBatch:getTexture

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

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: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: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: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 (