Bart van Strien
3cb777e2b7
Add basic lua 5.3 support
2015-06-16 10:25:41 +02:00
Alex Szpakowski
2f419c1c83
Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.
...
--HG--
branch : minor
2015-03-01 18:32:41 -04:00
Alex Szpakowski
c7b45b3505
Updated copyright for the new year
2014-12-31 19:32:43 -04:00
Alex Szpakowski
da7cd267ea
Changed luax_pushtype to retain the pushed object itself, but only if the object isn't in the Lua state already.
...
Previously, calling e.g. love.graphics.getFont() 10,000 times would retain the object 10,000 times (and release it 10,000 times when the Font object was garbage-collected in the Lua state.) Now it will only retain it once and release it once.
2014-08-09 16:04:59 -03:00
Alex Szpakowski
c6c32dee17
Removed a piece of code I forgot to delete
2014-07-28 16:58:51 -03:00
Alex Szpakowski
014b9a46e5
Updated the Lua wrapper code for modules to account for cases where the module's instance is removed from memory completely and recreated during the program's lifetime.
2014-07-21 14:52:01 -03:00
Alex Szpakowski
dfa319e01a
Replaced the EXCEPT_GUARD macro for converting love exceptions into Lua errors with the new luax_catchexcept function, which takes lambda function arguments.
2014-06-03 19:27:00 -03:00
Alex Szpakowski
3120a0e650
Goodbye 2013, hello 2014!
2014-01-03 17:28:58 -04:00
Alex Szpakowski
5e3a0fbc6e
Updated box2d from 2.2.1 to 2.3.0
...
--HG--
branch : box2d-2.3
2013-11-09 04:30:36 -04:00
Alex Szpakowski
06f80d5c08
Fixed undefined behaviour when love exceptions are converted into Lua errors (resolves issue #729 )
2013-09-05 23:17:29 -03:00
Alex Szpakowski
ec9dec6b80
Replaced luax_newtype with luax_pushtype (and added luax_rawnewtype for the old functionality of luax_newtype.)
...
luax_pushtype keeps the object in a weak table and checks the table before creating a new userdata, so it re-uses the object's existing wrapper userdata if it can, whenever the object is pushed to Lua.
This fixes some subtle issues with love objects, where using them as keys in tables would not always work as expected (https://love2d.org/forums/viewtopic.php?f=4&t=39398&p=112388#p112415 ). It also decreases the amount of new Lua objects created, saving the garbage collector some work.
2013-08-29 00:40:06 -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
96161c66f6
Updated copyright text for the new year
2013-02-05 05:32:49 -04:00
Bart van Strien
7793e7f02f
CRLF to LF
2012-07-04 14:40:24 +02:00
rude
81c38e22d0
Applied the new style guidelines.
...
Well, sort of. Lot's more to be done, but this is a start.
2012-06-28 23:52:33 +02:00
Bill Meltsner
223f9eebef
Provide a default density of 1.0 for Fixtures
2012-02-04 17:21:42 -05:00
Bill Meltsner
be55579a22
Happy New Year, have an enormous diff
2012-01-09 02:41:11 -06:00
Bart van Strien
c1f68e058d
Use Box2D's callbacks for destruction of physics objects and wait until the end of the timestep before destroying them.
...
Merge of box2d-id2 from love-experiments
2012-01-08 13:16:50 +01:00
Bart van Strien
ae833449d4
Move some includes over to the right file, fixing an include loop in the process
2011-12-29 13:47:39 +01:00
Bart van Strien
c707a4ca45
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
2011-12-24 01:10:40 +01:00
Bart van Strien
0aae9684b3
Automated formatting fix
2011-11-16 11:32:41 +01: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
f38655a934
Add second body anchor point to FrictionJoint/WeldJoint constructors
...
--HG--
branch : box2d-update
2011-10-02 10:06:31 -04:00
Bill Meltsner
735c52b228
make love.physics.setMeter error on invalid meters (anything less than 1)
...
--HG--
branch : box2d-update
2011-10-02 09:33:42 -04:00
Bill Meltsner
d4703960a4
Do the same for WheelJoint
...
--HG--
branch : box2d-update
2011-09-27 16:38:46 -04:00
Bill Meltsner
5244463109
Add second body anchor point as a parameter to love.physics.newPrismaticJoint, and fix some scaling issues with PrismaticJoint
...
--HG--
branch : box2d-update
2011-09-27 15:48:29 -04:00
Bill Meltsner
b6f3d2114f
Remove legacy meter setting from love.physics.newWorld
...
--HG--
branch : box2d-update
2011-09-25 11:32:46 -04:00
Bill Meltsner
56ce9a2e17
Expose love.physics.getDistance
...
--HG--
branch : box2d-update
2011-09-25 11:21:05 -04:00
Bill Meltsner
680dd65c19
Add love.physics.getDistance(fixtureA, fixtureB) - gets the distance between and the closest points of two fixtures
...
--HG--
branch : box2d-update
2011-09-24 17:29:42 -04:00
Bill Meltsner
b36ff409aa
Make Fixture creation API more lovely
...
--HG--
branch : box2d-update
2011-09-24 09:27:39 -04:00
Bill Meltsner
8592b98525
Add type to Body constructor (defaults to "static")
...
--HG--
branch : box2d-update
2011-09-24 02:15:46 -04:00
Bill Meltsner
2c761fc701
Actually load Fixture Lua functions
...
--HG--
branch : box2d-update
2011-09-24 00:47:54 -04:00
Bill Meltsner
367dbc2ecc
Update Body API.
...
--HG--
branch : box2d-update
2011-09-23 22:21:14 -04:00
Bill Meltsner
71abae06c7
Implement Fixture class properly.
...
--HG--
branch : box2d-update
2011-09-23 18:01:40 -04:00
Bill Meltsner
4980797afc
World no longer has an explicit size
...
--HG--
branch : box2d-update
2011-09-23 16:27:59 -04:00
Bill Meltsner
a565668183
Add ChainShape
...
--HG--
branch : box2d-update
2011-09-15 17:17:28 -04:00
Bill Meltsner
e69cafe868
Switched get/setMeter from being a World method to a love.physics function
...
--HG--
branch : box2d-update
2011-09-15 16:13:54 -04:00
Bill Meltsner
e5fa4c87c6
exposed collideConnected flag
...
--HG--
branch : box2d-update
2011-09-15 14:28:48 -04:00
Bill Meltsner
99660f39ab
Added RopeJoint
...
--HG--
branch : box2d-update
2011-09-15 12:40:16 -04:00
Bill Meltsner
7ec64bf912
Add basic EdgeShape (todo: all edge-related functionality) and further integrated the new Joints
...
--HG--
branch : box2d-update
2011-09-04 13:21:57 -04:00
Bill Meltsner
915e3e9d86
Updated to Box2D 2.2, added new joints, some other updates to match the API changes (still plenty more to go though)
...
--HG--
branch : box2d-update
2011-09-03 15:39:32 -04:00
Bill Meltsner
be146c5f61
some more Shape fixes
...
--HG--
branch : box2d-update
2011-03-13 10:09:17 -04:00
Bill Meltsner
fde708160e
bringing in the new year by changing every 2010 to 2011
2011-01-15 14:40:27 -06:00
rude
d884cb8a82
Removed newWorld(w, h). Added newWorld(x1, y1, x2, y2).
2010-11-25 16:49:03 +01:00
Bart van Strien
908df65bdb
Added meter parameter to newWorld
2010-08-01 14:42:54 +02:00
bart@bartbes.ath.cx
736f7ab1a2
love.thread can now share full userdata
2010-02-14 17:41:11 +01:00
rude
aa01c984b9
Updated all dates to 2010.
2010-01-31 16:54:47 +01:00
bill@Ixion
c70d1e9db3
keeping a consistent coding style and apparently fixing broken compilation on systems that aren't mine.
2009-12-05 16:29:33 -06:00
bill@Ixion
b57f48eb73
last commit broke the build by accident - apparently redeclared a variable. fixed.
2009-12-03 19:20:45 -06:00
bill@Ixion
c120a1570c
love.physics.newWorld now acts like it's supposed to and adheres to the documentation
2009-12-03 19:13:35 -06:00