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

SpriteBatch:unlock This has been changed to SpriteBatch:unbind

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)

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

Text:clear Available since LÖVE 0.10.0 This function is not supported in earlier versions. Clears the contents of the Text object. Function Synopsis Text:clear( ) Arguments None. Returns Nothing. See Also Text

Text:getDimensions

Text:getDimensions Available since LÖVE 0.10.1 This function is not supported in earlier versions. Gets the width and height of the text in pixels. Function Synopsis width, height = Text:getDimensions( ) Arguments None. Returns number width The width of the text. If multiple sub-strings have been added with Text:add, the width of the last sub-string is returned. number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string

Text:getFont

Text:getFont Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the Font used with the Text object. Function Synopsis font = Text:getFont( ) Arguments None. Returns Font font The font used with this Text object. See Also Text Text:setFont

Text:getHeight

Text:getHeight Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the height of the text in pixels. Function Synopsis height = Text:getHeight( ) Arguments None. Returns number height The height of the text. If multiple sub-strings have been added with Text:add, the height of the last sub-string is returned. Function Gets the height of a specific sub-string that was previously added to the Text object. Synopsis height = Text:getHeight( index ) Argume

Text:getWidth

Text:getWidth Available since LÖVE 0.10.0 This function is not supported in earlier versions. Gets the width of the text in pixels. Function Synopsis width = Text:getWidth( ) Arguments None. Returns number width The width of the text. If multiple sub-strings have been added with Text:add, the width of the last sub-string is returned. Function Gets the width of a specific sub-string that was previously added to the Text object. Synopsis width = Text:getWidth( index ) Arguments number i