love.textinput

love.textinput Available since LÖVE 0.9.0 This function is not supported in earlier versions. Called when text has been entered by the user. For example if shift-2 is pressed on an American keyboard layout, the text "@" will be generated. Function Synopsis love.textinput( text ) Arguments string text The UTF-8 encoded unicode text. Returns Nothing. Notes Although Lua strings can store UTF-8 encoded unicode text just fine, many functions in Lua's string library will not treat the text a

love.graphics.newShader

love.graphics.newShader Available since LÖVE 0.9.0 It has been renamed from love.graphics.newPixelEffect. 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! Creates a new Shader object for hardware-accelerated vertex and pixel effects. A Shader contains either vertex shader code, pixel shader code, or both. Shaders are small programs which are ru

love.graphics.stencil

love.graphics.stencil Available since LÖVE 0.10.0 Together with love.graphics.setStencilTest, it has replaced love.graphics.setStencil. Draws geometry as a stencil. The geometry drawn by the supplied function sets invisible stencil values of pixels, instead of setting pixel colors. The stencil values of pixels can act like a mask / stencil - love.graphics.setStencilTest can be used afterward to determine how further rendering is affected by the stencil values in each pixel. Each Canvas ha

RevoluteJoint:isLimitsEnabled

RevoluteJoint:isLimitsEnabled Removed in LÖVE 0.9.0 It has been renamed to RevoluteJoint:hasLimitsEnabled. Checks whether limits are enabled. Function Synopsis enabled = RevoluteJoint:isLimitsEnabled( ) Arguments None. Returns boolean enabled True if enabled, false otherwise. See Also RevoluteJoint

World:getCallbacks

World:getCallbacks Returns functions for the callbacks during the world update. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis beginContact, endContact, preSolve, postSolve = World:getCallbacks( ) Arguments None. Returns function beginContact Gets called when two fixtures begin to overlap. function endContact Gets called when two fixtures cease to overlap. function preSolve Gets called before a collision gets resolved. function postSolve

love.window.minimize

love.window.minimize Available since LÖVE 0.9.2 This function is not supported in earlier versions. Minimizes the window to the system's task bar / dock. Function Synopsis love.window.minimize( ) Arguments None. Returns Nothing. See Also love.window

Shape:rayCast

Shape:rayCast Available since LÖVE 0.8.0 This function is not supported in earlier versions. Casts a ray against the shape and returns the surface normal vector and the line position where the ray hit. If the ray missed the shape, nil will be returned. The Shape can be transformed to get it into the desired position. The ray starts on the first point of the input line and goes towards the second point of the line. The fourth argument is the maximum distance the ray is going to travel as a

Data:getSize

Data:getSize Gets the Data's size in bytes. Function Synopsis size = Data:getSize( ) Arguments None. Returns number size The size of the Data in bytes. See Also Data

love.math.linearToGamma

love.math.linearToGamma Available since LÖVE 0.9.1 This function is not supported in earlier versions. Converts a color from linear-space (RGB) to gamma-space (sRGB). This is useful when storing linear RGB color values in an image, because the linear RGB color space has less precision than sRGB for dark colors, which can result in noticeable color banding when drawing. In general, colors chosen based on what they look like on-screen are already in gamma-space and should not be double-conve

love.graphics.getHeight

love.graphics.getHeight Available since LÖVE 0.2.1 This function is not supported in earlier versions. Gets the height in pixels of the window. Function Synopsis height = love.graphics.getHeight( ) Arguments None. Returns number height The height of the window. See Also love.graphics love.graphics.getWidth love.graphics.getDimensions