Commit Graph

83 Commits

Author SHA1 Message Date
bjorn 086f7f4e47 lovrRelease frees objects instead of destructor;
That way objects allocated on the stack can be destroyed.
2018-12-19 01:41:01 -08:00
bjorn 155a0c1449 lovr*Create -> lovr*Init; lovr*Create macro; 2018-12-19 01:04:42 -08:00
bjorn ba192374dc Start math types; 2018-12-02 12:08:07 -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 005d4b93f2 Move math helpers into lib;
They aren't really part of the math module since they are shared
across several modules, more "util"-y.
2018-11-15 08:03:51 -08: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 bc2d638b00 Refs know their type; 2018-07-24 19:14:29 -07:00
bjorn bdc9b63b8a Fix lots of memory leaks;
Especially when restarting or using threads.
2018-03-23 19:31:45 -07:00
bjorn 4df836727c Simplify refcounting; 2018-02-26 00:59:03 -08:00
bjorn f54d1c1e03 rm containerof; 2018-02-25 23:19:39 -08:00
bjorn f5fa9a4e5c Make modules more restartable;
Except headset.  Screw you, headset.
2018-02-23 18:38:53 -08:00
mcc 8052896b33 Restart-without-quit support: lovr.event.quit("restart") and return-from-run() both support the string "restart" in place of an exit code. When this happens, the program reruns itself in a new, isolated environment. In Emscripten, no reboot occurs and the program only quits. 2018-01-25 21:32:16 -05:00
bjorn ecde864ec4 Use spooky BOOleans everywhere; 2017-10-31 01:14:09 -07:00
bjorn 40b9cb1c63 Fix World:update fix; 2017-08-27 13:23:40 -07:00
bjorn cbfeda1b1c Fix World:update; 2017-08-26 21:06:03 -07:00
bjorn 74f585ca8d Use lovrAssert and lovrThrow for better errors; 2017-08-10 01:05:04 -07:00
bjorn a6ae2bdf6b Fix Collider:getAABB; 2017-06-21 18:45:46 -07:00
bjorn 1cc62a9b6d DistanceJoint; 2017-06-10 15:13:19 -07:00
bjorn 827c92cc38 Collider constructor accepts position; 2017-06-10 14:17:59 -07:00
bjorn b0c86c1903 Reorder collider functions; 2017-06-10 04:51:09 -07:00
bjorn 769e7514c8 Remove single precision check; 2017-05-25 15:55:16 -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 3b4996b7d0 Collider:setFriction; Collider:setRestitution; 2017-05-25 00:56:56 -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 507ab7f4bb BallJoint:getAnchors; BallJoint:setAnchor; 2017-05-24 23:47:16 -07:00
bjorn 73e3282c47 rm Shape category and mask; 2017-05-24 20:06:06 -07:00
bjorn 6bfea99be6 Collider:getAABB; 2017-05-24 18:10:39 -07:00
bjorn 876a8406b1 Shape:getAABB; 2017-05-24 17:47:59 -07:00
bjorn f3df7aa114 World:raycast; 2017-05-24 17:40:32 -07:00
bjorn 07ede6b2dc Custom friction and resitution; 2017-05-24 17:40:32 -07:00
bjorn f1a74c34c3 Joints;
Also no expressions in luax_pushtype;
2017-05-24 17:40:32 -07:00
bjorn f3a4ce3931 Collider:getShapeList; 2017-05-19 22:51:16 -06:00
bjorn 0fb1bd77d8 Shape:destroy; 2017-05-19 22:24:23 -06:00
bjorn 6ef9c6e475 Collider:destroy; 2017-05-19 22:14:20 -06:00
bjorn 5640b1d048 Organization; World:destroy; 2017-05-19 22:11:49 -06:00
bjorn 1a404c087f Collider:getLocalCenter; 2017-05-19 21:51:43 -06:00
bjorn 1829a65898 Organization; Collider:isGravityIgnored; Collider:setGravityIgnored; 2017-05-19 21:48:59 -06:00
bjorn 2c89aa4663 s/Body/Collider; 2017-05-19 20:11:58 -06:00
bjorn 661e9188c7 Custom collision handling; 2017-05-19 15:04:34 -06:00
bjorn 7c170d9bf2 Collision WIP; 2017-05-16 23:12:10 -06:00
bjorn 9e907d6dec Orientation fixes; 2017-05-16 23:11:53 -06:00
bjorn 29f4878dbc Body:getMassData; Body:setMassData; 2017-05-16 19:13:38 -06:00
bjorn e8686ffaea Body:getMass; Body:setMass; 2017-05-16 18:41:47 -06:00
bjorn e18f3e3f9d Shape:computeMass;
I think
2017-05-16 18:25:08 -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