Source:setVolumeLimits

Source:setVolumeLimits Available since LÖVE 0.8.0 This function is not supported in earlier versions. Sets the volume limits of the source. The limits have to be numbers from 0 to 1. Function Synopsis Source:setVolumeLimits( min, max ) Arguments number min The minimum volume. number max The maximum volume. Returns Nothing. See Also Source

Source:stop

Source:stop Available since LÖVE 0.7.0 This function is not supported in earlier versions. Stops a Source. Function Synopsis Source:stop() Arguments None. Returns Nothing. See Also Source

Source:tell

Source:tell Available since LÖVE 0.8.0 This function is not supported in earlier versions. Gets the currently playing position of the Source. Function Synopsis position = Source:tell( unit ) Arguments TimeUnit unit ("seconds") The type of unit for the return value. Returns number position The currently playing position of the Source. See Also Source:seek Source

SpriteBatch:add

SpriteBatch:add Adds a sprite to the batch. Sprites are drawn in the order they are added. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis id = SpriteBatch:add( x, y, r, sx, sy, ox, oy, kx, ky ) Arguments number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis). number sy (sx) Scale factor (y-axis). number ox (0) Origin o

SpriteBatch:addq

SpriteBatch:addq Removed in LÖVE 0.9.0 It has been merged into SpriteBatch:add. Adds a Quad to the batch. Function Available since LÖVE 0.8.0 This variant is not supported in earlier versions. Synopsis id = SpriteBatch:addq( quad, x, y, r, sx, sy, ox, oy, kx, ky ) Arguments Quad quad The Quad to add. number x The position to draw the object (x-axis). number y The position to draw the object (y-axis). number r (0) Orientation (radians). number sx (1) Scale factor (x-axis). number s

SpriteBatch:attachAttribute

SpriteBatch:attachAttribute Available since LÖVE 0.10.0 This function is not supported in earlier versions. Attaches a per-vertex attribute from a Mesh onto this SpriteBatch, for use when drawing. This can be combined with a Shader to augment a SpriteBatch with per-vertex or additional per-sprite information instead of just having per-sprite colors. Each sprite in a SpriteBatch has 4 vertices in the following order: top-left, bottom-left, top-right, bottom-right. The index returned by Spri

SpriteBatch:bind

SpriteBatch:bind Available since LÖVE 0.8.0 It has been renamed from SpriteBatch:lock. Removed in LÖVE 0.10.0 It happens automatically since version 0.9.2. Use SpriteBatch:flush if absolutely necessary. Binds the SpriteBatch to memory for more efficient updating. Binding a SpriteBatch before updating its content can improve the performance as it doesn't push each update to the graphics card separately. Don't forget to unbind the SpriteBatch or the updates won't show up. Function Syno

SpriteBatch:clear

SpriteBatch:clear Removes all sprites from the buffer. Function Synopsis SpriteBatch:clear( ) Arguments None. Returns Nothing. See Also SpriteBatch

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

SpriteBatch:getBufferSize

SpriteBatch:getBufferSize Available since LÖVE 0.9.0 This function is not supported in earlier versions. Gets the maximum number of sprites the SpriteBatch can hold. Function Synopsis size = SpriteBatch:getBufferSize( ) Arguments None. Returns number size The maximum number of sprites the batch can hold. See Also SpriteBatch SpriteBatch:setBufferSize SpriteBatch:getCount