enet.peer:receive

enet.peer:receive Attempts to dequeue an incoming packet for this peer. Returns nil if there are no packets waiting. Otherwise returns two values: The string representing the packet data, and the channel the packet came from. Function Synopsis peer:receive() Arguments None. Returns string data Data from the received packet in a string. number channel Channel the packet was received from. See Also lua-enet enet.peer

PrismaticJoint:getLowerLimit

PrismaticJoint:getLowerLimit Gets the lower limit. Function Synopsis lower = PrismaticJoint:getLowerLimit( ) Arguments None. Returns number lower The lower limit, usually in meters. See Also PrismaticJoint

World:getBodyList

World:getBodyList Available since LÖVE 0.8.0 This method is not supported in earlier versions. Returns a table with all bodies. Function Synopsis bodies = World:getBodyList( ) Arguments None. Returns table bodies A sequence with all bodies. See Also World

World:setContactFilter

World:setContactFilter Available since LÖVE 0.8.0 This method is not supported in earlier versions. Sets a function for collision filtering. If the group and category filtering doesn't generate a collision decision, this function gets called with the two fixtures as arguments. The function should return a boolean value where true means the fixtures will collide and false means they will pass through each other. Function Synopsis World:setContactFilter( filter ) Arguments function filter

Contact:setEnabled

Contact:setEnabled Available since LÖVE 0.8.0 This function is not supported in earlier versions. Enables or disables the contact. Function Synopsis Contact:setEnabled( enabled ) Arguments boolean enabled True to enable or false to disable. Returns Nothing. See Also Contact Contact:isEnabled

love.mouse.setGrabbed

love.mouse.setGrabbed Available since LÖVE 0.9.0 It has been renamed from love.mouse.setGrab. Grabs the mouse and confines it to the window. Function Synopsis love.mouse.setGrabbed( grab ) Arguments boolean grab True to confine the mouse, false to let it leave the window. Returns Nothing. Examples Toggles whether the mouse is grabbed by pressing tab, with the help of love.mouse.isGrabbed. function love.keypressed(key) if key == "tab" then local state = not love.mouse.isGrabbe

love.graphics.getDefaultFilter

love.graphics.getDefaultFilter Available since LÖVE 0.9.0 It has been renamed from love.graphics.getDefaultImageFilter. Returns the default scaling filters used with Images, Canvases, and Fonts. Function Synopsis min, mag, anisotropy = love.graphics.getDefaultFilter( ) Arguments None. Returns FilterMode min Filter mode used when scaling the image down. FilterMode mag Filter mode used when scaling the image up. number anisotropy Maximum amount of Anisotropic Filtering used. See Also

love.graphics.setInvertedStencil

love.graphics.setInvertedStencil Available since LÖVE 0.8.0 and removed in LÖVE 0.10.0 It has been replaced by love.graphics.stencil and love.graphics.setStencilTest. Defines an inverted stencil for the drawing operations or releases the active one. It's the same as love.graphics.setStencil with the mask inverted. Function Synopsis love.graphics.setInvertedStencil( stencilFunction ) Arguments function stencilFunction Function that draws the stencil. Returns Nothing. Function Releases

ParticleSystem:setSpeed

ParticleSystem:setSpeed Sets the speed of the particles. Function Synopsis ParticleSystem:setSpeed( min, max ) Arguments number min The minimum linear speed of the particles. number max (min) The maximum linear speed of the particles. Returns Nothing. See Also ParticleSystem

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