Commit Graph

893 Commits

Author SHA1 Message Date
Bart van Strien 47561e8b14 Hopefully add cross-platform (u)int types:q 2011-12-20 20:53:26 +01:00
Bart van Strien 53e010a832 Remove all uses of LOVE_UNUSED, and simply not name the arguments instead 2011-12-20 20:26:17 +01:00
Bart van Strien 9fb63dc4b8 Make the new event sink thread-safe (hopefully) and make small usability fixes 2011-12-20 19:51:50 +01:00
Bart van Strien d3bd9b1156 Events now have 4 arguments (or less) 2011-12-20 19:17:26 +01:00
Bart van Strien adf25991e8 Fix the joystick event handler names, to match the new event names 2011-12-19 14:15:48 +01:00
Bill Meltsner 6277f4c75b lua libraries, even on mac, almost never come in .dylib form, but rather .so - change love.filesystem.require accordingly 2011-12-19 01:42:34 -06:00
Bill Meltsner 969c53e592 make love build on OS X again - there's no need to include gl.h directly, GLee.h does that for us in a cross-platform way 2011-12-19 00:28:45 -06:00
Jonathan Giroux 36a93e46c7 Add control to the sound attenuation by distance. 2011-12-14 00:32:18 +01:00
Bart van Strien 735260d4d8 Thread:kill()? What Thread:kill()? 2011-12-13 19:24:10 +01:00
Bart van Strien e37470f54d No more Font:set(), instead love.graphics.setNewFont 2011-12-13 19:22:59 +01:00
Bart van Strien 9682ebecf9 Remove love.graphics.setFont([<file>,] <size>) shorthand, idiom is now love.graphics.newFont([<file>,] <size>):set()
This makes sure that setFont doesn't create any fonts.
2011-12-13 18:51:24 +01:00
Bart van Strien 083dd11185 Switch to a custom event system, where SDL pumps into
To do this we needed to take ThreadVariant out of love.thread, and move it to common.
This also changes event names, instead of 1/2-letter abbreviations, full names!
2011-12-13 17:50:38 +01:00
Bart van Strien 91fefbd1ee *click* *pop* *POOF* 2011-12-13 17:11:57 +01:00
Bart van Strien 362a7835b4 Make keyboard repeat better.. or something 2011-12-11 19:08:01 +01:00
Bart van Strien 7c8fff979a Create love.window, abstract SDL out of love.graphics 2011-12-11 16:55:52 +01:00
vrld 2b7da8ea27 Rename love.graphics.[sg]etRenderTarget to love.graphics.[sg]etCanvas 2011-12-11 16:24:59 +01:00
Bart van Strien a003f5d581 tostring all errors in the error handler (issue #332) 2011-12-06 21:55:16 +01:00
Bart van Strien 1503533ee6 Key repeat gets seconds too 2011-12-06 21:30:31 +01:00
Bart van Strien 5fb4f2c63d Request ALL the bits 2011-11-30 17:50:41 +01:00
vrld 66f640fa0e Fix typo in Quad::mirror(). 2011-11-19 16:11:49 +01:00
Bart van Strien 35cfb66bf7 Poll for events before update/run and do a first timestep after window creation
Moving the event loop improves accuracy of various input functions, and thus decreases mouse lag for custom pointers, for instance.
Doing a timestep after window creation makes sure that engine initialization isn't in the first dt.
NOTE: A near-zero dt can occur.
2011-11-19 15:38:51 +01:00
Bart van Strien 0aae9684b3 Automated formatting fix 2011-11-16 11:32:41 +01:00
Bart van Strien fafe472595 Prevent working with an invalid iterator (issue #331) 2011-11-16 10:24:10 +01:00
Bart van Strien 2fafab9a0e Add luax_checkstring/pushstring functions that handle inline \0 characters 2011-11-15 21:37:11 +01:00
vrld 983b00c510 Revert Canvas flipping (commits 9cb824e2fa84, e0234edd0026) in order to fix issue #324. 2011-11-12 22:09:56 +01:00
vrld 7eef68f4ec Remove printing exception message to stderr. 2011-11-12 21:24:08 +01:00
vrld c208f4b08d Add missing license headers. 2011-11-12 21:19:35 +01:00
vrld fec5b9ac91 Issue #327 again: w__gc's correctness depending on order of inheritance. 2011-11-12 21:13:38 +01:00
vrld 7a513e1434 Make love::Exception safe(r).
Now allows exceptions of arbitrary length.
Now allows catching a non-reference, i.e. catch(love::Exception e).
2011-11-12 21:11:41 +01:00
Bart van Strien 03927f5207 Use a fixed module loading order (bug #261)
And yes, this means there won't be segfaults with jit builds, woo.
2011-11-12 15:11:09 +01:00
Bart van Strien cf2bfcc4a2 Fix more memory leaks (issue #327) 2011-11-12 15:00:26 +01:00
vrld aedf532cdc Fix 3/4 of issue #327: memory allocation issues. 2011-11-08 23:22:48 +01:00
Bart van Strien f9077ee1a6 Store the vera font as file data, instead of doing that every time it is loaded 2011-11-08 22:33:08 +01:00
Bart van Strien f0aa29f9a5 The actual commit 2011-11-05 23:18:30 +01:00
Bart van Strien 49ec65dbf3 Oops, didn't have a clean tree 2011-11-05 23:17:32 +01:00
Bart van Strien d8666202cd Improve compatibility check (I still can't believe robin was right) 2011-11-05 22:07:15 +01:00
vrld 9d63f08472 Make GLSL compiler messages NULL-terminated strings, even if they already are. 2011-11-04 19:08:37 +01:00
rude 2753c62985 Abstractify some modules completely: timer, keyboard and mouse.
If this commit breaks some project file(s), well ...
I AM RUDE AND I WILL BREAK EVERYTHING, AHAHAHAHAHAHAHHAHAHAHAHA!
2011-10-28 10:47:16 +02:00
vrld cd66b01da3 Add GLSL version number check to PixelEffect::isSupported() 2011-10-26 21:17:40 +02:00
vrld f296fbb903 Add format guard 2011-10-26 21:12:17 +02:00
Bart van Strien d8b1d67a34 Centralize NPOT support check for image, export it to isSupported 2011-10-24 17:43:56 +02:00
Bill Meltsner a6eca47cef Add love.audio.stop() call to the error handlers 2011-10-20 18:30:49 -04:00
Bart van Strien dc66ea20c1 Add SpriteBatch:set(q) and make add(q) return the index 2011-10-20 20:19:01 +02:00
Bill Meltsner 7a15953595 Add cstddef include so certain compilers don't complain about NULL not being declared 2011-10-13 12:38:19 -05:00
Bart van Strien bc2dd6f75b Enola Gay delivers again 2011-10-12 21:49:04 +02:00
Bill Meltsner cb6bde5ad7 Always use protection 2011-10-12 14:42:51 -05:00
Bill Meltsner d20f42c230 this machine kills compiler warnings 2011-10-12 14:41:25 -05:00
Bart van Strien b32464f0d3 Forward box2d asserts to exception, then catch those in the new* functions 2011-10-12 21:36:46 +02:00
Bill Meltsner 57f9cf439e Add LOVE_UNUSED macro to stamp out all those "unused parameter" warnings 2011-10-12 14:03:38 -05:00
Bill Meltsner 56ae3a95fc Bring back some elements of better Body destruction that got lost in the merge 2011-10-12 13:51:47 -05:00