(Image):setFilter

(Image):setFilter Sets the filter mode for an image. Function Synopsis Image:setFilter( min, mag ) Arguments FilterMode min How to scale an image down. FilterMode mag How to scale an image up. Returns Nothing. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis Image:setFilter( min, mag, anisotropy ) Arguments FilterMode min How to scale an image down. FilterMode mag How to scale an image up. number anisotropy (1) Maximum amount of anisot

PulleyJoint:getMaxLengths

PulleyJoint:getMaxLengths Get the maximum lengths of the rope segments. Function Synopsis len1, len2 = PulleyJoint:getMaxLengths( ) Arguments None. Returns number len1 The maximum length of the first rope segment. number len2 The maximum length of the second rope segment. See Also PulleyJoint

Source:setVelocity

Source:setVelocity Available since LÖVE 0.7.0 This function is not supported in earlier versions. Sets the velocity of the Source. This does not change the position of the Source, but lets the application know how it has to calculate the doppler effect. Function Synopsis Source:setVelocity( x, y, z ) Arguments number x The X part of the velocity vector. number y The Y part of the velocity vector. number z The Z part of the velocity vector. Returns Nothing. See Also Source

Shape:getDensity

Shape:getDensity Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Gets the density of the Shape. Function Synopsis density = Shape:getDensity( ) Arguments None. Returns number density The density of the Shape. See Also Shape

Body:setLinearDamping

Body:setLinearDamping Sets the linear damping of a Body See Body:getLinearDamping for a definition of linear damping. Linear damping can take any value from 0 to infinity. It is recommended to stay between 0 and 0.1, though. Other values will make the objects look "floaty"(if gravity is enabled). Function Synopsis Body:setLinearDamping( ld ) Arguments number ld The new linear damping Returns Nothing. See Also Body

love.graphics.getStats

love.graphics.getStats Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets performance-related rendering statistics. Function Synopsis stats = love.graphics.getStats( ) Arguments None. Returns table stats A table with the following fields: number drawcalls The number of draw calls made so far during the current frame. number canvasswitches The number of times the active Canvas has been switched so far during the current frame. number texturememory The e

love.mouse.getX

love.mouse.getX Returns the current x-position of the mouse. Function Synopsis x = love.mouse.getX( ) Arguments None. Returns number x The position of the mouse along the x-axis. Examples Draw a vertical line at the mouse's x-position. function love.draw() local x = love.mouse.getX() love.graphics.line(x,0, x,love.graphics.getHeight()) end See Also love.mouse love.mouse.getY love.mouse.getPosition

BezierCurve:rotate

BezierCurve:rotate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Rotate the Bézier curve by an angle. Function Synopsis BezierCurve:rotate(angle, ox, oy) Arguments number angle Rotation angle in radians. number ox (0) X coordinate of the rotation center. number oy (0) Y coordinate of the rotation center. Returns Nothing. See Also BezierCurve:translate BezierCurve:scale BezierCurve love.math

World:getAllowSleeping

World:getAllowSleeping 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 renamed to World:isSleepingAllowed. Returns the sleep behaviour of the world. Function Synopsis allowSleep = World:getAllowSleeping( ) Arguments None. Returns boolean allowSleep True if the bodies are allowed to sleep or false if not. See Also World World:setAllowSleeping

RevoluteJoint:getUpperLimit

RevoluteJoint:getUpperLimit Gets the upper limit. Function Synopsis upper = RevoluteJoint:getUpperLimit( ) Arguments None. Returns number upper The upper limit, in radians. See Also RevoluteJoint