Difference between revisions of "0.10.0"

m (Added note about love.window.getDimensions)
(Updated the changelog)
Line 15: Line 15:
 
* Added [[love.system.vibrate]].
 
* Added [[love.system.vibrate]].
 
* Added [[love.filesystem.setRequirePath]] and [[love.filesystem.getRequirePath]].
 
* Added [[love.filesystem.setRequirePath]] and [[love.filesystem.getRequirePath]].
 +
* Added an optional program exit status number argument to [[love.event.quit]].
 
* Added [[love.filedropped]] and [[love.directorydropped]] event callback functions.
 
* Added [[love.filedropped]] and [[love.directorydropped]] event callback functions.
 
* Added [[love.lowmemory]] event callback function, called when the app is running out of memory on mobile operating systems.
 
* Added [[love.lowmemory]] event callback function, called when the app is running out of memory on mobile operating systems.
Line 26: Line 27:
 
* Added [[love.graphics.ellipse]].
 
* Added [[love.graphics.ellipse]].
 
* Added rounded-rectangle support to [[love.graphics.rectangle]].
 
* Added rounded-rectangle support to [[love.graphics.rectangle]].
 +
* Added [[love.graphics.points]] (replaces [[love.graphics.point]].)
 +
* Added [[love.graphics.intersectScissor]].
 
* Added an optional boolean argument to [[love.graphics.setBlendMode]] which indicates whether the blend mode should multiply alpha with rgb for the source color. It is true by default.
 
* Added an optional boolean argument to [[love.graphics.setBlendMode]] which indicates whether the blend mode should multiply alpha with rgb for the source color. It is true by default.
 
* Added a new built-in [[Shader Variables|shader variable]]: "mat3 NormalMatrix".
 
* Added a new built-in [[Shader Variables|shader variable]]: "mat3 NormalMatrix".
Line 41: Line 44:
 
* Added support for different formats in each Canvas when using multi-canvas rendering. Added the "multicanvasformats" [[GraphicsFeature]] constant.
 
* Added support for different formats in each Canvas when using multi-canvas rendering. Added the "multicanvasformats" [[GraphicsFeature]] constant.
 
* Added support for OpenGL ES 2 and 3.
 
* Added support for OpenGL ES 2 and 3.
* Added support for loading ETC1/2, EAC, and PVRTC1 [[CompressedFormat|compressed textures]].
+
* Added support for loading ETC1, ETC2, EAC, and PVRTC1 [[CompressedFormat|compressed textures]] on systems that support them.
 
* Added custom vertex attribute support for [[Mesh]]es via new variants of [[love.graphics.newMesh]].
 
* Added custom vertex attribute support for [[Mesh]]es via new variants of [[love.graphics.newMesh]].
 
* Added [[Mesh:setVertexAttribute]] and [[Mesh:getVertexAttribute]], [[Mesh:getVertexFormat]], and [[Mesh:flush]].
 
* Added [[Mesh:setVertexAttribute]] and [[Mesh:getVertexAttribute]], [[Mesh:getVertexFormat]], and [[Mesh:flush]].
Line 91: Line 94:
 
* Removed image loading support for all (non-compressed texture) file formats except for PNG, JPEG, TGA, and BMP.
 
* Removed image loading support for all (non-compressed texture) file formats except for PNG, JPEG, TGA, and BMP.
 
* Removed JPEG encoding support from [[ImageData:encode]].
 
* Removed JPEG encoding support from [[ImageData:encode]].
 +
* Removed [[love.graphics.point]] (replaced by [[love.graphics.points]].)
 
* Removed [[love.graphics.setPointStyle]] and [[love.graphics.getPointStyle]].
 
* Removed [[love.graphics.setPointStyle]] and [[love.graphics.getPointStyle]].
 
* Removed [[love.graphics.isSupported]] (replaced by [[love.graphics.getSupported]].)
 
* Removed [[love.graphics.isSupported]] (replaced by [[love.graphics.getSupported]].)
Line 120: Line 124:
 
* Fixed [[love.keyboard.getKeyFromScancode]] crashing when an invalid scancode is given.
 
* Fixed [[love.keyboard.getKeyFromScancode]] crashing when an invalid scancode is given.
 
* Fixed decoding of 8-bit WAV files.
 
* Fixed decoding of 8-bit WAV files.
 +
* Fixed a crash issue when rewinding streaming ogg Sources, when certain versions of libvorbis are used.
 
* 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.
Line 142: Line 147:
 
* Updated [[World:setCallbacks]], [[World:setContactFilter]], [[World:queryBoundingBox]], and [[World:rayCast]] to have improved argument type checking.
 
* Updated [[World:setCallbacks]], [[World:setContactFilter]], [[World:queryBoundingBox]], and [[World:rayCast]] to have improved argument type checking.
 
* Updated threads to load [[love.filesystem]] automatically.
 
* Updated threads to load [[love.filesystem]] automatically.
 +
* Updated [[love.filesystem]] to enable [[love.filesystem.setSymlinksEnabled|symlinks]] by default.
 
* Updated [[love.math.setRandomSeed]] and [[RandomGenerator:setSeed]] to produce better results for the first few random() calls.
 
* Updated [[love.math.setRandomSeed]] and [[RandomGenerator:setSeed]] to produce better results for the first few random() calls.
 
* Updated [[Source]] methods that deal with spatial audio to error rather than failing silently if the Source isn't mono.
 
* Updated [[Source]] methods that deal with spatial audio to error rather than failing silently if the Source isn't mono.
Line 147: Line 153:
 
* Updated [[love.graphics.newImageFont]] to no longer treat separator pixels as spacing.
 
* Updated [[love.graphics.newImageFont]] to no longer treat separator pixels as spacing.
 
* Updated the default font to use less memory.
 
* Updated the default font to use less memory.
 +
* Updated the behavior of text wrapping with [[love.graphics.printf]] and [[Font:getWrap]] to work better.
 +
* Updated some of the error messages for [[love.graphics.newImage]] to be more descriptive.
 
* Updated love.graphics color functions to automatically apply [[love.math.gammaToLinear]] to color values when gamma-correct rendering is enabled.
 
* Updated love.graphics color functions to automatically apply [[love.math.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 the "normal" [[CanvasFormat]] to internally use "srgb" rather than "rgba8" when gamma-correct rendering is enabled.

Revision as of 06:04, 24 October 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


Changed APIs


Renamed APIs


Removals


Bugfixes

  • Fixed utf8.char.
  • Fixed detection of fused executables.
  • Fixed World:getCallbacks and World:getContactFilter when used in coroutines.
  • Fixed crashes when objects which store Lua callback functions are garbage collected after being used in coroutines.
  • Fixed love.keyboard.getKeyFromScancode crashing when an invalid scancode is given.
  • Fixed decoding of 8-bit WAV files.
  • Fixed a crash issue when rewinding streaming ogg Sources, when certain versions of libvorbis are used.
  • Fixed love.audio.stop() not rewinding streaming Sources.
  • Fixed the stencil buffer in Canvases 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 the default offset for particles when ParticleSystem:setQuads or ParticleSystem:setTexture is used.
  • Fixed love.graphics.shear resetting all love.graphics transformations.
  • Fixed the "add" and "subtract" BlendModes to no longer modify the alpha of the Canvas / screen.


Performance improvements


Other changes

  • 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 __tostring metamethod of love objects to output the pointer value, similar to tostring(table).
  • Updated World:setCallbacks, World:setContactFilter, World:queryBoundingBox, and World:rayCast to have improved argument type checking.
  • Updated threads to load love.filesystem automatically.
  • Updated love.filesystem to enable symlinks by default.
  • Updated love.math.setRandomSeed and RandomGenerator:setSeed to produce better results for the first few random() calls.
  • Updated Source methods that deal with spatial audio to error rather than failing silently if the Source isn't mono.
  • Updated the 3D and 4D variants of love.math.noise to use Perlin noise rather than Simplex noise, to avoid patent issues.
  • Updated love.graphics.newImageFont to no longer treat separator pixels as spacing.
  • Updated the default font to use less memory.
  • Updated the behavior of text wrapping with love.graphics.printf and Font:getWrap to work better.
  • Updated some of the error messages for love.graphics.newImage to be more descriptive.
  • Updated love.graphics color functions to automatically apply love.math.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 ParticleSystems, SpriteBatches, and Meshes, even when per-vertex or per-sprite colors are used.
  • Updated the default fullscreen type to be "desktop" rather than "exclusive".
  • Updated the minimum runtime system requirements of LOVE to require OpenGL 2.1 or OpenGL ES 2 support.
  • Updated the pixel shader effect function so screen_coords.y is 0 at the top of the screen instead of the bottom.
  • Updated Images to require setting the mipmaps flag to true on creation in order to use mipmaps.
  • Updated Images to allow mipmaps for non-power-of-two sizes.