love.graphics.rotate

love.graphics.rotate Rotates the coordinate system in two dimensions. Calling this function affects all future drawing operations by rotating the coordinate system around the origin by the given amount of radians. This change lasts until love.draw() exits. Function Synopsis love.graphics.rotate( angle ) Arguments number angle The amount to rotate the coordinate system in radians. Returns Nothing. Examples Rotating a static scene This example shows how to rotate a static scene around a giv

Contact:getSeparation

Contact:getSeparation Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the separation between two shapes that are in contact. The return value of this function is always zero or negative, with a negative value indicating overlap between the two shapes. Function Synopsis distance = Contact:getSeparation( ) Arguments None. Returns number distance The separation between the two shapes. See Also Contact

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

SpriteBatch:flush

SpriteBatch:flush Available since LÖVE 0.9.2 This function is not supported in earlier versions. Immediately sends all new and modified sprite data in the batch to the graphics card. Normally it isn't necessary to call this method as love.graphics.draw(spritebatch, ...) will do it automatically if needed, but explicitly using SpriteBatch:flush gives more control over when the work happens. If this method is used, it generally shouldn't be called more than once (at most) between love.graph

love.graphics.getBackgroundColor

love.graphics.getBackgroundColor Gets the current background color. Function Synopsis r, g, b, a = love.graphics.getBackgroundColor( ) Arguments None. Returns number r The red component (0-255). number g The green component (0-255). number b The blue component (0-255). number a The alpha component (0-255). See Also love.graphics love.graphics.setBackgroundColor

ParticleSystem:isPaused

ParticleSystem:isPaused Available since LÖVE 0.9.0 This function is not supported in earlier versions. Checks whether the particle system is paused. Function Synopsis paused = ParticleSystem:isPaused( ) Arguments None. Returns boolean paused True if system is paused, false otherwise. See Also ParticleSystem ParticleSystem:isActive ParticleSystem:isStopped

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

enet.peer:state

enet.peer:state Returns the state of the peer as a string. Function Synopsis peer:state() Arguments None. Returns string state The peer's current state. It can be any of the following: "disconnected" "connecting" "acknowledging_connect" "connection_pending" "connection_succeeded" "connected" "disconnect_later" "disconnecting" "acknowledging_disconnect" "zombie" "unknown" See Also lua-enet enet.peer

love.window.getIcon

love.window.getIcon Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the window icon. Function Synopsis imagedata = love.window.getIcon( ) Arguments None. Returns ImageData imagedata The window icon imagedata, or nil if no icon has been set with love.window.setIcon. See Also love.window love.window.setIcon

Source:getAttenuationDistances

Source:getAttenuationDistances Available since LÖVE 0.9.0 It has been renamed from Source:getDistance. Gets the reference and maximum attenuation distances of the Source. The values, combined with the current DistanceModel, affect how the Source's volume attenuates based on distance from the listener. Function Synopsis ref, max = Source:getAttenuationDistances( ) Arguments None. Returns number ref The current reference attenuation distance. If the current DistanceModel is clamped, this i