(Image):getFilter

(Image):getFilter Gets the filter mode for an image. Function Synopsis min, mag = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mode used when magnifying the image. Function Available since LÖVE 0.9.0 This variant is not supported in earlier versions. Synopsis min, mag, anisotropy = Image:getFilter( ) Arguments None. Returns FilterMode min Filter mode used when minifying the image. FilterMode mag Filter mo

love.filesystem.getRealDirectory

love.filesystem.getRealDirectory Available since LÖVE 0.9.2 This function is not supported in earlier versions. Gets the platform-specific absolute path of the directory containing a filepath. This can be used to determine whether a file is inside the save directory or the game's source .love. Function Synopsis realdir = love.filesystem.getRealDirectory( filepath ) Arguments string filepath The filepath to get the directory of. Returns string realdir The platform-specific full path of

World:isAllowSleep

World:isAllowSleep Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the sleep behaviour of the world. A sleeping body is much more efficient to simulate than when awake. If sleeping is allowed, any body that has come to rest will sleep. Function Synopsis permission = World:isAllowSleep( ) Arguments None. Returns boolean permission Permission for any body to sleep. See Also World

PolygonShape:validate

PolygonShape:validate Available since LÖVE 0.9.0 This function is not supported in earlier versions. Validates whether the PolygonShape is convex. Concave PolygonShapes cannot be used in love.physics. Function Synopsis convex = PolygonShape:validate() Arguments None. Returns boolean convex Whether the PolygonShape is convex. See Also PolygonShape

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

love.threaderror

love.threaderror Available since LÖVE 0.9.0 This callback is not supported in earlier versions. Callback function triggered when a Thread encounters an error. Function Synopsis love.threaderror( thread, errorstr ) Arguments Thread thread The thread which produced the error. string errorstr The error message. Returns Nothing. Example function love.load() mythread = love.thread.newThread("thread.lua") mythread:start() end   function love.threaderror(thread, errorstr) print("Thread

love.gamepadpressed

love.gamepadpressed Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when a Joystick's virtual gamepad button is pressed. Function Synopsis love.gamepadpressed( joystick, button ) Arguments Joystick joystick The joystick object. GamepadButton button The virtual gamepad button. Returns Nothing. See Also love love.gamepadreleased Joystick:isGamepad

Body:setAngle

Body:setAngle Set the angle of the body. The angle is measured in radians. If you need to transform it from degrees, use math.rad. A value of 0 radians will mean "looking to the right". .Although radians increase counter-clockwise, the y axis points down so it becomes clockwise from our point of view. It is possible to cause a collision with another body by changing its angle. Function Synopsis Body:setAngle( angle ) Arguments number angle The angle in radians. Returns Nothing. See Al

enet.host:total received data

enet.host:total received data Returns the number of bytes that were received by the given host. Function Synopsis host:total_received_data() Arguments None. Returns number bytes The total number of bytes received. See Also lua-enet enet.host enet.host:total_sent_data

Shape:setCategory

Shape:setCategory Removed in LÖVE 0.8.0 Use Fixture:setCategory instead. Sets the categories this shape is a member of. Sets the categories of this shape by specifying numbers from 1-16 as parameters. Categories can be used to prevent certain shapes from colliding. Function Synopsis Shape:setCategory( ... ) Arguments numbers ... Numbers from 1-16 Returns Nothing. See Also Shape