Shader:send

Shader:send Available since LÖVE 0.9.0 It has been renamed from PixelEffect:send. Sends one or more values to a special (uniform) variable inside the shader. Uniform variables have to be marked using the uniform or extern keyword, e.g. uniform float time; // "float" is the typical number type used in GLSL shaders. uniform float vars[2]; uniform vec2 light_pos; uniform vec4 colors[4]; The corresponding send calls would be shader:send("time", t) shader:send("vars",a,b) shader:send("light_p

Quad:getTextureDimensions

Quad:getTextureDimensions Available since LÖVE 0.10.2 This function is not supported in earlier versions. Gets reference texture dimensions initially specified in love.graphics.newQuad. Function Synopsis sw, sh = Quad:getTextureDimensions( ) Arguments None. Returns number sw The Texture width used by the Quad. number sh The Texture height used by the Quad. See Also Quad Quad:getViewport

enet.peer:disconnect later

enet.peer:disconnect later Request a disconnection from peer, but only after all queued outgoing packets are sent. Function Synopsis peer:disconnect_later(data) Arguments number data Optional integer value to be associated with the disconnect. Returns Nothing. See Also lua-enet enet.peer

Shader:getWarnings

Shader:getWarnings Available since LÖVE 0.9.0 It has been renamed from PixelEffect:getWarnings. Returns any warning and error messages from compiling the shader code. This can be used for debugging your shaders if there's anything the graphics hardware doesn't like. Function Synopsis warnings = Shader:getWarnings( ) Arguments None. Returns string warnings Warning and error messages (if any). See Also Shader

Source:setRelative

Source:setRelative Available since LÖVE 0.9.0 This function is not supported in earlier versions. Sets whether the Source's position, velocity, direction, and cone angles are relative to the listener, or absolute. By default, all sources are absolute and therefore relative to the origin of love's coordinate system [0, 0, 0]. Only absolute sources are affected by the position of the listener. Please note that positional audio only works for mono (i.e. non-stereo) sources. Function Synopsis

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

ParticleSystem:getParticleLifetime

ParticleSystem:getParticleLifetime Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the lifetime of the particles. Function Synopsis min, max = ParticleSystem:getParticleLifetime( ) Arguments Nothing. Returns number min The minimum life of the particles (in seconds). number max The maximum life of the particles (in seconds). See Also ParticleSystem ParticleSystem:setParticleLifetime

ParticleSystem:getSpinVariation

ParticleSystem:getSpinVariation Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the amount of spin variation (0 meaning no variation and 1 meaning full variation between start and end). Function Synopsis variation = ParticleSystem:getSpinVariation( ) Arguments Nothing. Returns number variation The amount of variation (0 meaning no variation and 1 meaning full variation between start and end). See Also ParticleSystem ParticleSystem:setSpinVariation

love.font.newBMFontRasterizer

love.font.newBMFontRasterizer Available since LÖVE 0.7.0 This function is not supported in earlier versions. Creates a new BMFont Rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer( imageData, glyphs ) Arguments ImageData imageData The image data containing the drawable pictures of font glyphs. string glyphs The sequence of glyphs in the ImageData. Returns BMFontRasterizer rasterizer The rasterizer. Function Synopsis rasterizer = love.font.newBMFontRasterizer(

Channel:pop

Channel:pop Available since LÖVE 0.9.0 This function is not supported in earlier versions. Retrieves the value of a Channel message and removes it from the message queue. It returns nil if there are no messages in the queue. Function Synopsis value = Channel:pop( ) Arguments None. Returns Variant value The contents of the message. See Also Channel Channel:push Channel:demand