ChainShape:setPrevVertex

ChainShape:setPrevVertex Available since LÖVE 0.8.0 This function is not supported in earlier versions. Removed in LÖVE 0.9.0 It has been renamed to ChainShape:setPreviousVertex. Sets a vertex that establishes a connection to the previous shape. This can help prevent unwanted collisions when a flat shape slides along the edge and moves over to the new shape. Function Synopsis ChainShape:setPrevVertex( x, y ) Arguments number x The x-component of the vertex. number y The y-component

love.graphics.setFont

love.graphics.setFont Set an already-loaded Font as the current font or create and load a new one from the file and size. It's recommended that Font objects are created with love.graphics.newFont in the loading stage and then passed to this function in the drawing stage. Function Synopsis love.graphics.setFont( font ) Arguments Font font The Font object to use. Returns Nothing. Function Removed in LÖVE 0.8.0 This variant is not supported in that and later versions. Synopsis love.graph

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

love.graphics.setCanvas

love.graphics.setCanvas Available since LÖVE 0.8.0 It has been renamed from love.graphics.setRenderTarget. Captures drawing operations to a Canvas. Function Sets the render target to a specified Canvas. All drawing operations until the next love.graphics.setCanvas call will be redirected to the Canvas and not shown on the screen. Synopsis love.graphics.setCanvas( canvas ) Arguments Canvas canvas The new target. Returns Nothing. Function Resets the render target to the screen, i.e. re-

Fixture:getDensity

Fixture:getDensity Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the density of the fixture. Function Synopsis density = Fixture:getDensity( ) Arguments None. Returns number density The fixture density in kilograms per square meter. See Also Fixture Fixture:setDensity

Fixture:getUserData

Fixture:getUserData Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns the Lua value associated with this fixture. Use this function in one thread and one thread only. Using it in more threads will make Lua cry and most likely crash. Function Synopsis value = Fixture:getUserData( ) Arguments None. Returns any value The Lua value associated with the fixture. See Also Fixture Fixture:setUserData

Font:getWrap

Font:getWrap Available since LÖVE 0.7.0 This function is not supported in earlier versions. Gets formatting information for text, given a wrap limit. This function accounts for newlines correctly (i.e. '\n'). Function Available since LÖVE 0.10.0 This variant is not supported in earlier versions. Synopsis width, wrappedtext = Font:getWrap( text, wraplimit ) Arguments string text The text that will be wrapped. number wraplimit The maximum width in pixels of each line that text is allo

Shape:getBody

Shape:getBody Available since LÖVE 0.7.0 This function is not supported in earlier versions. Removed in LÖVE 0.8.0 This function is not supported in that and later versions. Get the Body the shape is attached to. Function Synopsis body = Shape:getBody( ) Arguments None. Returns Body body The body the shape is attached to. See Also Shape

love.graphics.newSpriteBatch

love.graphics.newSpriteBatch Creates a new SpriteBatch object. This function can be slow if it is called repeatedly, such as from love.update or love.draw. If you need to use a specific resource often, create it once and store it somewhere it can be reused! Function Synopsis spriteBatch = love.graphics.newSpriteBatch( image, maxsprites ) Arguments Image image The Image to use for the sprites. number maxsprites (1000) The maximum number of sprites that the SpriteBatch can contain at any give

Canvas:getFormat

Canvas:getFormat Available since LÖVE 0.9.1 This function is not supported in earlier versions. Gets the texture format of the Canvas. Function Synopsis format = Canvas:getFormat( ) Arguments None. Returns CanvasFormat format The format of the Canvas. See Also Canvas love.graphics.newCanvas