1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-22 05:33:35 +00:00
Commit graph

27 commits

Author SHA1 Message Date
bjorn bf89216997 Explicitly convert lua_Numbers to floats; 2019-01-29 22:04:04 -08:00
bjorn 90cacd03ca Handle numbers more consistently in Lua API;
I still don't know if I should cast or not, but at least now things
will be consistently right or wrong.
2019-01-11 22:37:54 -08:00
bjorn 0e99d47394 Fix module destruction;
There is a problem when a Thread stops: it destroys all of the modules
that it required.  This is because we unconditionally call luax_atexit
when modules are required, and when the thread lua_State dies it takes
all of the modules with it.  To fix this, lovr<Module>Init will return
whether or not initialization successfully happened, which provides us
with enough info to know if we should place the luax_atexit destructor
2018-11-19 09:24:28 -08:00
bjorn cee3c28f4e luax_atexit; rm lovrDestroy;
Modules register themselves in the registry for destruction at
lua_close instead of having a hardcoded list in lovrDestroy.
2018-09-27 18:38:44 -07:00
bjorn e02d22365f api: refactor; 2018-09-27 18:38:44 -07:00
bjorn 7a866552e9 Fix remaining physics leaks; 2018-08-22 09:29:34 -07:00
bjorn 1f00948da0 Fix world/collider memory leaks; 2018-08-18 21:16:19 -07:00
bjorn 83ddb82162 Simplify Lua object management; 2018-07-24 20:13:54 -07:00
bjorn f903b6014c Use arrays for enums instead of maps; 2018-07-04 20:11:52 -07:00
bjorn d67ec24884 Fix Joint:getType returning nil for DistanceJoints; 2018-01-09 19:42:09 -08:00
bjorn 1d20e49829 Move api header; 2017-12-10 12:41:43 -08:00
bjorn ecde864ec4 Use spooky BOOleans everywhere; 2017-10-31 01:14:09 -07:00
bjorn 1cc62a9b6d DistanceJoint; 2017-06-10 15:13:19 -07:00
bjorn c198369c95 Joint limits; 2017-05-25 15:20:55 -07:00
bjorn 39400776dc Semantic tags; 2017-05-25 15:01:40 -07:00
bjorn a32eb38026 SliderJoint; 2017-05-25 00:48:02 -07:00
bjorn c828eaa338 HingeJoint; 2017-05-24 23:51:27 -07:00
bjorn f1a74c34c3 Joints;
Also no expressions in luax_pushtype;
2017-05-24 17:40:32 -07:00
bjorn 2c89aa4663 s/Body/Collider; 2017-05-19 20:11:58 -06:00
bjorn bcbe6c47d4 CylinderShape; 2017-05-16 15:56:20 -06:00
bjorn 6a166f7102 CapsuleShape; 2017-05-16 15:52:41 -06:00
bjorn e79c45ffdf BoxShape; 2017-05-16 15:52:09 -06:00
bjorn 995e8a2ea8 SphereShape; 2017-05-16 15:21:10 -06:00
bjorn 43ac25a61d Shape; 2017-05-16 12:17:01 -06:00
bjorn f4d4664318 Body; 2017-05-15 23:09:32 -06:00
bjorn 70bc90154b World; 2017-05-15 23:02:08 -06:00
bjorn 7597e71ff3 lovr.physics; 2017-05-15 22:59:53 -06:00