Mesh:hasVertexColors

Mesh:hasVertexColors Available since LÖVE 0.9.0 and removed in LÖVE 0.10.0 It has been replaced by Mesh:isAttributeEnabled("VertexColor"). Gets whether per-vertex colors are used instead of the constant color when drawing the Mesh (constant color being love.graphics.setColor.) Per-vertex colors are enabled by default for a Mesh if at least one vertex color was not the default (255, 255, 255, 255) when the Mesh was created. Function Synopsis vertexcolors = Mesh:hasVertexColors( ) Arguments

Body:setType

Body:setType Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a new body type. Function Synopsis Body:setType( type ) Arguments BodyType type The new type. Returns Nothing. See Also Body Body:getType

love.filesystem.init

love.filesystem.init Initializes love.filesystem, will be called internally, so should not be used explicitly. Function Synopsis love.filesystem.init( appname ) Arguments string appname The name of the application binary, typically love. Returns Nothing. See Also love.filesystem

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

enet.host:get peer

enet.host:get peer Returns the connected peer at the specified index (starting at 1). ENet stores all peers in an array of the corresponding host and re-uses unused peers for new connections. You can query the state of a peer using peer:state(). Function Synopsis host:get_peer(index) Arguments number index The index of the desired peer. Returns enet.peer peer The desired peer structure. See Also lua-enet enet.host enet.peer

(File):tell

(File):tell Returns the position in the file Function Synopsis pos = File:tell( ) Arguments None. Returns number pos The current position See Also File

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

CircleShape:getLocalCenter

CircleShape:getLocalCenter Removed in LÖVE 0.8.0 This method is not supported in that and later versions. Get the center of the circle in local coordinates. Function Synopsis lx, ly = CircleShape:getLocalCenter( ) Arguments None. Returns number lx The x position of the circle in local coordinates. number ly The y position of the circle in local coordinates. See Also CircleShape

Joystick:getGamepadMapping

Joystick:getGamepadMapping Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the button, axis or hat that a virtual gamepad input is bound to. Function Synopsis inputtype, inputindex, hatdirection = Joystick:getGamepadMapping( axis ) Arguments GamepadAxis axis The virtual gamepad axis to get the binding for. Returns JoystickInputType inputtype The type of input the virtual gamepad axis is bound to. number inputindex The index of the Joystick's button,

GearJoint:setRatio

GearJoint:setRatio Set the ratio of a gear joint. Function Synopsis GearJoint:setRatio( ratio ) Arguments number ratio The new ratio of the joint. Returns Nothing. See Also GearJoint