Difference between revisions of "0.10.0"

(Add bullet points for functions of the love.touch module)
m (Updated changelog)
Line 6: Line 6:
 
=== Additions ===
 
=== Additions ===
 
* Added an iOS port.
 
* Added an iOS port.
 +
* Added an Android port.
 
* Added the flag t.accelerometerjoystick to [[love.conf]]. Disables accelerometer-as-joystick functionality on mobile devices when false.
 
* Added the flag t.accelerometerjoystick to [[love.conf]]. Disables accelerometer-as-joystick functionality on mobile devices when false.
 +
* Added the flag t.gammacorrect to [[love.conf]] (replaces t.window.srgb.) Enabling it globally enables gamma-correct rendering, when supported.
 
* Added [[love.touch]] module. Note that it has important differences from the touch implementation in the LÖVE 0.9.2 Android and iOS ports.
 
* Added [[love.touch]] module. Note that it has important differences from the touch implementation in the LÖVE 0.9.2 Android and iOS ports.
 
** Added [[love.touch.getPosition]]
 
** Added [[love.touch.getPosition]]
 
** Added [[love.touch.getTouches]]
 
** Added [[love.touch.getTouches]]
 
* Added [[love.touchpressed]], [[love.touchreleased]], and [[love.touchmoved]].
 
* Added [[love.touchpressed]], [[love.touchreleased]], and [[love.touchmoved]].
 +
* Added [[love.system.vibrate]].
 
* Added [[love.filesystem.setRequirePath]] and [[love.filesystem.getRequirePath]].
 
* Added [[love.filesystem.setRequirePath]] and [[love.filesystem.getRequirePath]].
 
* Added [[love.filedropped]] and [[love.directorydropped]] event callback functions.
 
* Added [[love.filedropped]] and [[love.directorydropped]] event callback functions.
Line 30: Line 33:
 
* Added color arguments to [[love.graphics.clear]]. It no longer always uses the background color value.
 
* Added color arguments to [[love.graphics.clear]]. It no longer always uses the background color value.
 
* Added [[love.graphics.discard]].
 
* Added [[love.graphics.discard]].
 +
* Added [[love.graphics.isGammaCorrect]]
 +
* Added the ability to specify custom mipmaps when creating an image, via [[love.graphics.newImage]](filename, {mipmaps={mip1, mip2, ...}}).
 
* Added optional x/y/width/height arguments to [[(Image):refresh|Image:refresh]] and [[Canvas:newImageData]].
 
* Added optional x/y/width/height arguments to [[(Image):refresh|Image:refresh]] and [[Canvas:newImageData]].
 
* Added [[(Image):getFlags|Image:getFlags]].
 
* Added [[(Image):getFlags|Image:getFlags]].
Line 40: Line 45:
 
* Added [[Mesh:setAttributeEnabled]] and [[Mesh:isAttributeEnabled]].
 
* Added [[Mesh:setAttributeEnabled]] and [[Mesh:isAttributeEnabled]].
 
* Added [[Mesh:attachAttribute]].
 
* Added [[Mesh:attachAttribute]].
 +
* Added [[Shader:sendColor]].
 +
* Added new shader functions: gammaCorrectColor, gammaToLinear, and linearToGamma. The functions also have 'precise' and 'fast' variants.
 
* Added [[Text]] objects and [[love.graphics.newText]].
 
* Added [[Text]] objects and [[love.graphics.newText]].
 
* Added BMFont bitmap font file support to [[love.graphics.newFont]] and [[love.font]].
 
* Added BMFont bitmap font file support to [[love.graphics.newFont]] and [[love.font]].
Line 67: Line 74:
 
* Removed [[love.graphics.setStencil]] (replaced by [[love.graphics.stencil]] and [[love.graphics.setStencilTest]].)
 
* Removed [[love.graphics.setStencil]] (replaced by [[love.graphics.stencil]] and [[love.graphics.setStencilTest]].)
 
* Removed the "canvas", "shader", "npot", "subtractive", and "mipmap" [[GraphicsFeature]] constants (the features always have guaranteed support now.)
 
* Removed the "canvas", "shader", "npot", "subtractive", and "mipmap" [[GraphicsFeature]] constants (the features always have guaranteed support now.)
 +
* Removed the "srgb" [[GraphicsFeature]] constant (use [[love.graphics.isGammaCorrect]] or [[love.graphics.getCanvasFormats]]().srgb instead.)
 +
* Removed the "srgb" flag in [[love.window.setMode]] and in the t.window table in [[love.conf]] (Replaced by t.gammacorrect.)
 
* Removed the "premultiplied" [[BlendMode]] ([[love.graphics.setBlendMode]]("alpha", false) now does the same thing.)
 
* Removed the "premultiplied" [[BlendMode]] ([[love.graphics.setBlendMode]]("alpha", false) now does the same thing.)
 
* Removed [[Canvas:getPixel]] (use [[Canvas:newImageData]] instead.)
 
* Removed [[Canvas:getPixel]] (use [[Canvas:newImageData]] instead.)
Line 99: Line 108:
 
* Fixed [[love.audio.stop]]() not rewinding streaming Sources.
 
* Fixed [[love.audio.stop]]() not rewinding streaming Sources.
 
* Fixed the stencil buffer in [[Canvas]]es when an unsupported MSAA value is used to create the Canvas.
 
* Fixed the stencil buffer in [[Canvas]]es when an unsupported MSAA value is used to create the Canvas.
 +
* Fixed [[Canvas:renderTo]] to restore the previous canvases if an error occurs in the passed function.
 +
* Fixed love.graphics.draw(canvas) to cause a Lua error if that canvas is the active one.
 
* Fixed [[love.graphics.getColorMask]].
 
* Fixed [[love.graphics.getColorMask]].
 
* Fixed the default offset for particles when [[ParticleSystem:setQuads]] or [[ParticleSystem:setTexture]] is used.
 
* Fixed the default offset for particles when [[ParticleSystem:setQuads]] or [[ParticleSystem:setTexture]] is used.
 
* Fixed [[love.graphics.shear]] resetting all love.graphics transformations.
 
* Fixed [[love.graphics.shear]] resetting all love.graphics transformations.
* Fixed the <code>add</code> and <code>subtract</code> [[BlendMode]]s to no longer modify the alpha of the Canvas / screen.
+
* Fixed the "add" and "subtract" [[BlendMode]]s to no longer modify the alpha of the Canvas / screen.
  
 
=== Other changes ===
 
=== Other changes ===
* Updated the compatibility warning notice to use a message box.
+
* Updated the compatibility warning notice to use a message box and to show the version specified in love.conf.
 
* Updated the compatibility warning notice to display before main.lua is loaded.
 
* Updated the compatibility warning notice to display before main.lua is loaded.
 +
* Updated the __tostring metamethod of love objects to output the pointer value, similar to tostring(table).
 
* Updated [[love.keypressed]] to be [[love.keypressed]](key, scancode, isrepeat).
 
* Updated [[love.keypressed]] to be [[love.keypressed]](key, scancode, isrepeat).
 
* Updated [[love.keyreleased]] to be [[love.keyreleased]](key, scancode).
 
* Updated [[love.keyreleased]] to be [[love.keyreleased]](key, scancode).
Line 118: Line 130:
 
* Updated the default font to use less memory.
 
* Updated the default font to use less memory.
 
* Updated [[Font:getWrap]]'s second return value to be a table containing the text split into lines.
 
* Updated [[Font:getWrap]]'s second return value to be a table containing the text split into lines.
 +
* Updated love.graphics color functions to automatically apply [[love.graphics.gammaToLinear]] to color values when gamma-correct rendering is enabled.
 +
* Updated the "normal" [[CanvasFormat]] to internally use "srgb" rather than "rgba8" when gamma-correct rendering is enabled.
 
* Updated [[love.graphics.setColor]] to affect all drawn objects, including [[ParticleSystem]]s, [[SpriteBatch]]es, and [[Mesh]]es, even when per-vertex or per-sprite colors are used.
 
* Updated [[love.graphics.setColor]] to affect all drawn objects, including [[ParticleSystem]]s, [[SpriteBatch]]es, and [[Mesh]]es, even when per-vertex or per-sprite colors are used.
 
* Updated the default [[FullscreenType|fullscreen type]] to be "desktop" rather than "exclusive".
 
* Updated the default [[FullscreenType|fullscreen type]] to be "desktop" rather than "exclusive".
Line 124: Line 138:
 
* Updated the arguments for the standard variants of [[love.graphics.newMesh]]. They're now [[love.graphics.newMesh]](vertices [, drawmode, usage]) and [[love.graphics.newMesh]](vertexcount [, drawmode, usage]).
 
* Updated the arguments for the standard variants of [[love.graphics.newMesh]]. They're now [[love.graphics.newMesh]](vertices [, drawmode, usage]) and [[love.graphics.newMesh]](vertexcount [, drawmode, usage]).
 
* Updated line drawing code to be more efficient.
 
* Updated line drawing code to be more efficient.
* Updated [[love.graphics.newImage]]'s optional second argument to be a table of flags (flags are "mipmaps" and "srgb".)
+
* Updated [[love.graphics.newImage]]'s optional second argument to be a table of flags (flags are "mipmaps" and "linear".)
 
* Updated [[Image]]s to require setting the mipmaps flag to true on creation in order to use mipmaps.
 
* Updated [[Image]]s to require setting the mipmaps flag to true on creation in order to use mipmaps.
 
* Updated [[Image]]s to allow mipmaps for non-power-of-two sizes.
 
* Updated [[Image]]s to allow mipmaps for non-power-of-two sizes.

Revision as of 14:47, 15 August 2015

O.png The information on this page may not be accurate or up to date due to the information pertaining to a version that is currently in development.  


The codename for LÖVE 0.10.0 is not yet announced. It is currently not released.

Changes from 0.9.2

Additions

Removals

Renamed APIs

Bugfixes

Other changes