love.window.requestAttention

love.window.requestAttention Available since LÖVE 0.10.0 This function is not supported in earlier versions. Causes the window to request the attention of the user if it is not in the foreground. In Windows the taskbar icon will flash, and in OS X the dock icon will bounce. Function Synopsis love.window.requestAttention( continuous ) Arguments boolean continuous (false) Whether to continuously request attention until the window becomes active, or to do it only once. Returns Nothing. S

love.filesystem.getSource

love.filesystem.getSource Available since LÖVE 0.9.0 This function is not supported in earlier versions. Returns the full path to the the .love file or directory. If the game is fused to the LÖVE executable, then the executable is returned. Function Synopsis path = love.filesystem.getSource( ) Arguments None. Returns string path The full platform-dependent path of the .love file or directory. See Also love.filesystem love.filesystem.isFused love.filesystem.getSourceBaseDirectory

Shader:send

Shader:send Available since LÖVE 0.9.0 It has been renamed from PixelEffect:send. Sends one or more values to a special (uniform) variable inside the shader. Uniform variables have to be marked using the uniform or extern keyword, e.g. uniform float time; // "float" is the typical number type used in GLSL shaders. uniform float vars[2]; uniform vec2 light_pos; uniform vec4 colors[4]; The corresponding send calls would be shader:send("time", t) shader:send("vars",a,b) shader:send("light_p

Shader:getWarnings

Shader:getWarnings Available since LÖVE 0.9.0 It has been renamed from PixelEffect:getWarnings. Returns any warning and error messages from compiling the shader code. This can be used for debugging your shaders if there's anything the graphics hardware doesn't like. Function Synopsis warnings = Shader:getWarnings( ) Arguments None. Returns string warnings Warning and error messages (if any). See Also Shader

Source:setRelative

Source:setRelative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets whether the Source's position, velocity, direction, and cone angles are relative to the listener, or absolute. By default, all sources are absolute and therefore relative to the origin of love's coordinate system [0, 0, 0]. Only absolute sources are affected by the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources. Function Synopsis

love.window.getPixelScale

love.window.getPixelScale Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the DPI scale factor associated with the window. The pixel density inside the window might be greater (or smaller) than the "size" of the window. For example on a retina screen in Mac OS X with the highdpi window flag enabled, the window may take up the same physical size as an 800x600 window, but the area inside the window uses 1600x1200 pixels. love.window.getPixelScale() would r

love.graphics.setShader

love.graphics.setShader Available since LÖVE 0.9.0 It has been renamed from love.graphics.setPixelEffect. Sets or resets a Shader as the current pixel effect or vertex shaders. All drawing operations until the next love.graphics.setShader will be drawn using the Shader object specified. Function Synopsis love.graphics.setShader( shader ) Arguments Shader shader The new shader. Returns Nothing. Notes Sets the current shader to a specified Shader. All drawing operations until the next l

Shape:setMask

Shape:setMask Removed in LÖVE 0.8.0 Use Fixture:setMask instead. Sets which categories this shape should NOT collide with. With this function, you can exclude certain shape categories from collisions with this shape. The categories passed as parameters will be excluded from collisions - all others included. Function Synopsis Shape:setMask( ... ) Arguments number ... Numbers from 1-16. Returns Nothing. Examples Only collide with category 6 shape:setMask(1, 2, 3, 4, 5, 7, 8, 9, 10, 12, 1

WheelJoint:getMotorSpeed

WheelJoint:getMotorSpeed Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the speed of the motor. Function Synopsis speed = WheelJoint:getMotorSpeed( ) Arguments None. Returns number speed The speed of the joint motor in radians per second. See Also WheelJoint WheelJoint:setMotorSpeed

Canvas:clear

Canvas:clear Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.clear. Clears the contents of a Canvas to a specific color. Calling this function directly after the Canvas becomes active (via love.graphics.setCanvas or Canvas:renderTo) is more efficient than calling it when the Canvas isn't active, especially on mobile devices. love.graphics.setScissor will restrict the area of the Canvas that this function affects. Function Clear the canvas to tr