Commit Graph

2296 Commits

Author SHA1 Message Date
Alex Szpakowski 140faf0cae Channel:push now returns an id value. Added Channel:hasRead(id), which returns true if the value that the id represents has already been popped, demanded, or cleared from the Channel. Resolves issue #1104.
--HG--
branch : minor
2016-03-09 22:04:14 -04:00
Bart van Strien dc7b1fb049 Remove the default source type (resolves #1082)
--HG--
branch : minor
2016-03-08 11:44:36 +01:00
Bart van Strien 34b6aa608b Merge in default
--HG--
branch : minor
2016-03-08 11:29:50 +01:00
Alex Szpakowski a0bbcce8ee The video decoding thread efficiently waits for a video to be created before doing anything, rather than sleeping for 2ms in a loop. Reduces the CPU usage of the video worker thread to ~0% when no videos are loaded. 2016-03-05 21:56:51 -04:00
Alex Szpakowski d4e701b434 SpriteBatch:add will now automatically increase the maximum size of the SpriteBatch if there's no more room.
--HG--
branch : minor
2016-03-05 12:59:00 -04:00
Alex Szpakowski 2e5f385be3 Merge default into minor
--HG--
branch : minor
2016-03-03 21:28:30 -04:00
Alex Szpakowski 7370bd56ce Improved the error message when love.graphics.newImage fails due to CompressedImageData not having all required mipmap levels (thanks Shell32!) 2016-03-03 20:36:30 -04:00
Alex Szpakowski a3ff90c94c Cleaned up the GlyphData code. 2016-03-02 22:12:32 -04:00
Alex Szpakowski f51bbb8462 Cleaned up some StrongRef-related code. 2016-03-01 18:57:17 -04:00
Alex Szpakowski 8d7481c3b2 Improved the error message given when jpeg, TGA, and BMP images fail to decode. 2016-02-28 12:41:27 -04:00
Alex Szpakowski e08374fdd1 We don't need a mutex lock in Channel::retain/release... I think. 2016-02-26 18:38:39 -04:00
Bart van Strien 33341de7bc Rewrite the c module loader, adding a search path (fixes #1050)
Note: also removes the restriction that only fused games can load libraries from
their save folders.

--HG--
branch : minor
2016-02-26 15:24:01 +01:00
Bart van Strien 2f7492667a Bump version
--HG--
branch : minor
2016-02-26 15:11:42 +01:00
Bart van Strien 977ffd1154 Merge in default
--HG--
branch : minor
2016-02-26 14:52:02 +01:00
Alex Szpakowski 4ca6106d7a Cleaned up Canvas::checkCreateStencil a bit. 2016-02-24 18:36:34 -04:00
Adam M 62b642f28a Support combined depth/stencil buffers when using vendor extensions. 2016-02-24 19:42:22 +00:00
Alex Szpakowski ff91fa1327 Improved Shader:send performance by removing some temporary memory allocations. 2016-02-20 19:24:33 -04:00
Alex Szpakowski cf4b409302 Renamed some things. 2016-02-18 22:11:41 -04:00
Alex Szpakowski 20b77bd28c Changed World:update(dt) to default to Box2D's recommended 3 internal position iterations instead of 6. Added a new variant World:update(dt, velocityiterations, positioniterations) which lets you specify the number of velocity and position iterations Box2D performs when updating the world. The defaults are 8 and 3 respectively, higher numbers increase precision and reduce performance.
Resolves issue #1135.

--HG--
branch : minor
2016-02-14 20:06:16 -04:00
Alex Szpakowski 1be2e34c92 Merged default into minor.
--HG--
branch : minor
2016-02-14 19:59:34 -04:00
Alex Szpakowski 2dd80fcb49 Fixed a compiler warning... 2016-02-14 19:52:27 -04:00
Alex Szpakowski 5d7425b60e Reduced the size in bytes of Variant slightly by allowing the compiler to better pack its member variables together in memory. 2016-02-14 19:51:55 -04:00
Alex Szpakowski 7ea259e38b Optimize constructing a Variant from a Lua table with a non-zero array size. 2016-02-14 19:24:17 -04:00
Alex Szpakowski 23fcaec89f The Variant class is now meant to be used on the stack instead of allocated on the heap. As a result (and because of related changes), performance of Channels has roughly doubled when pushing and popping most types. 2016-02-14 16:39:32 -04:00
Alex Szpakowski f7ee949af8 Fixed love.graphics.clear(colortable) causing crashes in GLES 2.0 when a Canvas is active (resolves issue #1127). 2016-02-14 00:26:02 -04:00
Alex Szpakowski 7ff411bb00 Merged in TannerRogalsky/love/source_relative_bug_fix (pull request #54)
Source:setRelative bug fix
2016-02-13 12:24:33 -04:00
Tanner Rogalsky 6336f2adac Use passed value when setting a Source's relative state instead of the stale, cached value.
--HG--
branch : source_relative_bug_fix
2016-02-13 10:58:03 -05:00
Alex Szpakowski 7c4edf2efc love.graphics object creation functions (love.graphics.new*) now cause an error instead of hard-crashing, if called when the window has not been created yet. 2016-02-11 22:34:33 -04:00
Alex Szpakowski ab4cfb4a35 Added an optional 'collideconnected' boolean argument to love.physics.newMotorJoint (resolves issue #1130). 2016-02-02 08:38:07 -04:00
Alex Szpakowski c2de8dbb6a Fixed audio on android to properly pause when the app is inactive, and resume when the app becomes active again. 2016-01-31 18:41:24 -04:00
Alex Szpakowski ed933847f8 Color values in love's APIs are now in the range of [0, 1] rather than [0, 255].
--HG--
branch : minor
2016-01-31 10:49:29 -04:00
Alex Szpakowski b794ffa84a love.touch.getTouches now returns the list of ids in a stable order, instead of being effectively randomly ordered.
The least recently pressed (longest-pressed) active touch id is first in the list, etc.
2016-01-30 22:35:25 -04:00
Alex Szpakowski 7db2997bc3 Improved the error messages caused when invalid or missing arguments are given to ImageData and SoundData methods. 2016-01-26 22:19:35 -04:00
Alex Szpakowski ab91ff0bfe Removed LOVE_LEGENDARY_UTF8_ARGV_HACK, SDL 2.0 does it for us. 2016-01-25 22:52:32 -04:00
Alex Szpakowski 518f91b53a Make sure the high-power AMD GPU is used on Windows laptops with switchable Intel+AMD GPUs. 2016-01-24 13:35:58 -04:00
Alex Szpakowski 6aa84187ba Fixed loading BMFont files which have characters with 0 width or height (e.g. a space character). 2016-01-17 22:55:12 -04:00
Alex Szpakowski 7299a237fb Added Text:getDimensions 2016-01-16 12:51:31 -04:00
Alex Szpakowski 9ec6eceb8a Cleaned up the error message code when love.window.setMode fails. 2016-01-14 19:16:41 -04:00
Alex Szpakowski abd3c64bc5 Moved another AMD-specific driver bug workaround to the OpenGL Bugs struct. 2016-01-13 21:43:00 -04:00
Alex Szpakowski 314a82b126 Fixed the piecewise function in linearToGamma to use <= instead of < when determining whether to use the linear part of the function. 2016-01-13 21:23:56 -04:00
Alex Szpakowski a95235ffa1 Typo fixes in a comment 2016-01-10 20:13:06 -04:00
Alex Szpakowski 8566729229 Merged in Bobbyjones/love/new-conf-flag-for-android-2 (pull request #53)
New conf flag for android 2
2016-01-10 20:11:34 -04:00
Alex Szpakowski 8a59743481 Added comments to the Bugs struct in OpenGL.h detailing some driver bugs that have workarounds that don't need conditional codepaths. 2016-01-10 16:12:51 -04:00
Alex Szpakowski 6d6d805858 Workaround for love.graphics.clear + love.graphics.setCanvas AMD driver bug, take two. 2016-01-09 23:40:04 -04:00
BobbyJones 2c550fbf6d now I removed it from the wrap :)
--HG--
branch : new-conf-flag-for-android-2
2016-01-09 19:47:45 -05:00
BobbyJones e855f2ae01 removed the isAndroidSaveExternal from the wrap
--HG--
branch : new-conf-flag-for-android-2
2016-01-09 19:45:47 -05:00
Alex Szpakowski 4f093e7fac Added a workaround for an AMD driver bug where setCanvas + clear + setCanvas doesn't work. 2016-01-09 17:14:05 -04:00
BobbyJones 57467448ad Made the android set save functions private.
--HG--
branch : new-conf-flag-for-android-2
2016-01-09 10:35:20 -05:00
Alex Szpakowski 9d6ff6e5de Fixed love.graphics.newFont(filedata) causing crashes (resolves issue #1119). 2016-01-05 19:59:29 -04:00
Alex Szpakowski a590cf17aa The default error handler resets the mouse cursor now. 2016-01-05 18:45:20 -04:00