love.audio.rewind

love.audio.rewind Rewinds all playing audio. Function Synopsis love.audio.rewind( ) Arguments None. Returns Nothing. Function Synopsis love.audio.rewind( source ) Arguments Source source The source to rewind. Returns Nothing. See Also love.audio

(File):getBuffer

(File):getBuffer Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the buffer mode of a file. Function Synopsis mode, size = File:getBuffer( ) Arguments None. Returns BufferMode mode The current buffer mode of the file. number size The maximum size in bytes of the file's buffer. See Also File File:setBuffer File:write

love.graphics.printf

love.graphics.printf Draws formatted text, with word wrap and alignment. See additional notes in love.graphics.print. In version 0.9.2 and earlier, wrapping was implemented by breaking up words by spaces and putting them back together to make sure things fit nicely within the limit provided. However, due to the way this is done, extra spaces between words would end up missing when printed on the screen, and some lines could overflow past the provided wrap limit. In version 0.10.0 and newer th

Thread:getError

Thread:getError Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the error string from the thread if it produced an error. Function Synopsis value = Thread:getError( ) Arguments None. Returns string value The error message. See Also Thread love.threaderror

love.graphics.getDefaultImageFilter

love.graphics.getDefaultImageFilter Available since LÖVE 0.8.0 and removed in LÖVE 0.9.0 It has been renamed to love.graphics.getDefaultFilter. Returns the default scaling filters. Function Synopsis min, mag = love.graphics.getDefaultImageFilter( ) Arguments None. Returns FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. See Also love.graphics love.graphics.setDefaultImageFilter

Source:isStatic

Source:isStatic Available since LÖVE 0.7.0 and removed in LÖVE 0.10.0 It has been replaced by Source:getType. Returns whether the Source is static. Function Synopsis static = Source:isStatic( ) Arguments None. Returns boolean static True if the Source is static, false otherwise. See Also Source SourceType

(Image):refresh

(Image):refresh Available since LÖVE 0.9.0 This function is not supported in earlier versions. Reloads the Image's contents from the ImageData or CompressedData used to create the image. Function Synopsis Image:refresh( ) Arguments None. Returns Nothing. Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis Image:refresh( x, y, width, height ) Arguments number x The x-axis of the top-left corner of the area within the Image to reload. numbe

Framebuffer:setWrap

Framebuffer:setWrap Available since LÖVE 0.7.2 This function is not supported in earlier versions. Removed in LÖVE 0.8.0 It has been renamed to Canvas:setWrap. Sets the wrapping properties of a Framebuffer. This function sets the way the edges of a Framebuffer are treated if it is scaled or rotated. If the WrapMode is set to 'clamp', the edge will not be interpolated. If set to 'repeat', the edge will be interpolated with the pixels on the opposing side of the framebuffer. Function Sy

love.sound.newSoundData

love.sound.newSoundData Creates new SoundData from a filepath, File, or Decoder. It's also possible to create SoundData with a custom sample rate, channel and bit depth. The sound data will be decoded to the memory in a raw format. It is recommended to create only short sounds like effects, as a 3 minute song uses 30 MB of memory this way. Function Synopsis soundData = love.sound.newSoundData( filename ) Arguments string filename The file name of the file to load. Returns SoundData soundDa

love.mouse.isGrabbed

love.mouse.isGrabbed Checks if the mouse is grabbed. Function Synopsis grabbed = love.mouse.isGrabbed( ) Arguments None. Returns boolean grabbed True if the cursor is grabbed, false if it is not. Examples Toggles whether the mouse is grabbed by pressing tab, using love.mouse.setGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbed() -- the opposite of whatever it currently is love.mouse.setGrabbed(state) --Use love.mouse.setGra