Commit Graph

1671 Commits

Author SHA1 Message Date
vrld 0dea115abe Add missing Polyline.{h,cpp} 2013-08-08 08:11:18 +02:00
vrld be205544b3 Issue #659: Add line joins.
Added:

love.graphics.setLineJoin(linejoin)
linejoin = love.graphics.getLineJoin()

where linjoin is one of:

- none
- miter
- bevel

Bevel and miter drawing is slightly faster than the 0.8 default (miter), while
the `none` join mode will be slower when overdraw is enabled.
2013-08-07 21:48:21 +02:00
Alex Szpakowski fc3affb9b9 Removed 'release mode' and love.releaseerrhand, and added love.filesystem.isFused (resolves issue #579).
Games which are fused (either via appending the .love to the executable or with --fused) automatically have the changes which previously only applied to fused games in release mode.
2013-08-05 15:02:50 -03:00
Alex Szpakowski 4443284a73 Updated changelog 2013-08-04 19:35:25 -03:00
Alex Szpakowski dc755ed375 Removed ParticleSystem:getX/getY (resolves issue #633) 2013-08-04 18:27:36 -03:00
Alex Szpakowski 140a19593b Changed the default error handlers to attempt to create a window to show the error if the window isn't created yet, instead of just quitting 2013-08-04 18:07:50 -03:00
Alex Szpakowski a60929e9b0 Merged bartbes/love-experiments/RandomGenerator-2 into default (resolves issue #692) 2013-08-04 17:28:33 -03:00
Alex Szpakowski 50504d83a5 Missed an uncaught exception in newRandomGenerator
--HG--
branch : RandomGenerator-2
2013-08-04 17:20:14 -03:00
Alex Szpakowski 674ad9247a Added some checks for invalid numbers to love.math.setRandomState
--HG--
branch : RandomGenerator-2
2013-08-04 17:04:52 -03:00
Bart van Strien 138fe49e35 Clean up readme a bit, add a note about running automagic from the root, and clean automagic up by making it slightly more verbose, and letting it check it's being run in the right directory (see issue #698) 2013-08-04 13:15:55 +02:00
Alex Szpakowski 7a20bbc6c4 Added an optional search order enum ("first" or "last") to love.filesystem.setIdentity and love.filesystem.mount (resolves issue #694) 2013-08-04 00:32:23 -03:00
Alex Szpakowski 4d6bdf4857 Added Source:getType 2013-08-03 21:30:47 -03:00
Alex Szpakowski a4ff39e0d4 Improved error checking for some enum strings (resolves issue #690).
Also moved love.audio.newSource from Lua code into C++ code
2013-08-03 21:24:43 -03:00
Alex Szpakowski 0c053e09d4 Improved error messages when using the wrong love type in a function 2013-08-03 18:52:00 -03:00
Bart van Strien 1602c6de7a Make mutex locks slightly more safe in some places (and correct in another...) 2013-08-03 22:13:33 +02:00
Alex Szpakowski 3e57cfd174 Slightly reduced internal reliance on specific module backends 2013-08-03 16:30:37 -03:00
Alex Szpakowski 2106ff2403 Added love.threaderror event callback function (re issue #673) 2013-08-03 15:10:08 -03:00
Alex Szpakowski 4dba3e91e2 Thread:start now clears the thread's error string before starting 2013-08-03 05:00:46 -03:00
Alex Szpakowski 0447d1e7c5 Changed love.math.randomnormal([mean], stddev) to love.math.randomNormal(stddev, [mean]);
Changed love.math.randomseed(seed) to love.math.setRandomState(state) and love.math.setRandomState(low, high). Added low, high = love.math.getRandomState().

love.math.setRandomState(state) can set the random state to an integer of up to 53 bits, love.math.setRandomState(low, high) can set the random state to a 64 bit integer by using the first argument as the lower 32 bits and the second argument as the higher 32 bits.
This allows for reliable setting and saving of the state of a RNG.

--HG--
branch : RandomGenerator-2
2013-08-01 18:32:44 -03:00
Alex Szpakowski 2128ba321e Fixed Geometry texture coordinates when using Geometry to draw auto-padded NPOT images (resolves issue #696) 2013-08-01 17:14:20 -03:00
Alex Szpakowski d7802b053b Removed love.graphics.setAlphaTest: incompatible with OpenGL ES 2+, core OpenGL 3+, and Direct3D 10+. Shaders can accomplish the same things and more. 2013-08-01 12:55:46 -03:00
Alex Szpakowski ce9d0be1ea Fixed love.filesystem.mount to consistently fail to mount things which are inside the game source directory, instead of only failing when the source dir is a zipped .love 2013-08-01 02:39:54 -03:00
Alex Szpakowski 411d16b063 Added include guard for love.h 2013-08-01 01:48:45 -03:00
Alex Szpakowski dfba650575 Fixed SpriteBatch:set with Geometry 2013-07-29 16:03:38 -03:00
Alex Szpakowski 45de33edb8 Removed Geometry:flip (resolves issue #670) 2013-07-29 05:50:08 -03:00
Alex Szpakowski b090a91650 Fixed love.app opening in the background instead of the foreground in OS X 2013-07-29 01:48:36 -03:00
Alex Szpakowski e19ade38ab Added support for BC4 (aka 3Dc+) compressed textures 2013-07-28 17:20:24 -03:00
Alex Szpakowski fa6eaaa3a6 Improved performance of SpriteBatch:add/set in some cases when the SpriteBatch isn't bound 2013-07-28 16:51:22 -03:00
Alex Szpakowski 02d77aa9be Fixed running love files with relative paths from the command line in OS X 2013-07-27 17:06:20 -03:00
Alex Szpakowski c8428a0a2b Fixed opening .love files in Mac OS 10.9 (resolves issue #689) 2013-07-27 16:10:06 -03:00
Alex Szpakowski 4595bb68eb Updated changelog 2013-07-25 00:58:37 -03:00
Alex Szpakowski 295487165f Unprintable ascii text (numbers 0-31 and 127 in decimal) is no longer sent to the unicode argument of love.keypressed 2013-07-24 02:44:36 -03:00
Alex Szpakowski 8408c276cb ParticleSystem:setColors(r, g, b) now defaults to 255 alpha instead of erroring (resolves issue #686) 2013-07-21 21:41:23 -03:00
Alex Szpakowski bdb4c7eb90 Renamed t.screen to t.window in love.conf (resolves issue #637) 2013-07-20 14:49:14 -03:00
Alex Szpakowski f41a2ed910 Reverted commit 8c64a0c (love.graphics.setCanvas(nil) erroring) 2013-07-19 19:53:39 -03:00
Alex Szpakowski cb0a974546 Merged love.graphics.setCanvases into love.graphics.setCanvas (resolves issue #684) 2013-07-19 15:45:40 -03:00
Alex Szpakowski 335cc378fc Added some internal verification for registering love type names 2013-07-18 00:45:49 -03:00
Alex Szpakowski 7cf7f3a25f Merged love.graphics.drawg into love.graphics.draw, and SpriteBatch:addg/setg into SpriteBatch:add/set (resolves issue #639) 2013-07-17 18:34:57 -03:00
Alex Szpakowski f9ce521794 Fixed a bug when requiring enet 2013-07-17 03:38:15 -03:00
Alex Szpakowski 57aa632841 Added love.graphics.getMaxImageSize 2013-07-17 00:35:25 -03:00
Alex Szpakowski 5a3055dd3b Replaced internal calls to luaL_register (deprecated in Lua 5.2) with an alternative 2013-07-16 23:23:58 -03:00
Alex Szpakowski 3725b4122f Fixed lazy-loading of stencil buffers in Canvases sometimes failing due to uninitialized variables 2013-07-16 20:04:10 -03:00
Bart van Strien 259f15da6f Apply box2d heap tickler patch: make sure ChainShape:getPoints has enough stack size 2013-07-17 00:06:53 +02:00
Alex Szpakowski ada83d1f2d Updated changelog 2013-07-16 05:07:03 -03:00
Alex Szpakowski 8ac288876d Added Thread:isRunning 2013-07-16 00:18:04 -03:00
Alex Szpakowski 719e9253da Fixed a compiler warning 2013-07-15 13:22:47 -03:00
Bart van Strien 98d92d3e1f Add support for "flat" tables to Variant.
This means you can now use Variants (used by Channels and love.event, for instance) to send tables as long as they only contain keys and values supported by Variant, AND they are not tables themselves.
2013-07-15 11:53:24 +02:00
Alex Szpakowski 67353d4de7 Reduced CPU usage (and improved performance) for the nogame screen 2013-07-14 18:04:20 -03:00
rude aa1c091cc9 Add Baby Inspector no-game screen.
As always, I had great plans for the no game screen, but these great plans take
way too much time to implement. So I settled for something simpler, i.e. the
standard LSD stuff.
2013-07-14 21:49:04 +02:00
Alex Szpakowski 7601ef05f4 Fixed a potential memory leak 2013-07-12 15:18:27 -03:00