Commit Graph

51 Commits

Author SHA1 Message Date
bjorn 5b52a91778 mv ref->free ref->destructor; 2018-12-19 01:33:47 -08:00
bjorn 9803e9916f Use naming convention for destructor; 2018-12-19 01:04:42 -08:00
bjorn c999f10039 Use _Noreturn for lovrThrow;
Generates smaller and prettier assembly.
2018-12-12 19:35:18 -08:00
bjorn eaf26ce4b8 Struct cleanup; 2018-12-10 15:18:42 -08:00
bjorn 24ba340929 Add CHECK_SIZEOF;
It can be used to check the size of a type at compile time.
2018-12-09 23:36:02 -08:00
bjorn ba192374dc Start math types; 2018-12-02 12:08:07 -08:00
bjorn f8011f7bf7 Initial platform.h; 2018-10-29 14:00:16 -07:00
bjorn 816fda2177 Fix everything and merge; 2018-09-27 18:38:44 -07:00
bjorn 92e6ad93cb Dynamically load modules; 2018-09-27 18:38:44 -07:00
bjorn 05802f3e90 util: rm vec_uint; 2018-09-26 10:49:33 -07:00
bjorn 148a2bdb45 Error system no longer relies on Lua; 2018-09-26 10:39:17 -07:00
bjorn f872a5f094 Re-enable threads for emscripten;
They don't appear to work very well but this simplifies code a lot.
2018-08-30 22:09:54 -07:00
bjorn bc2d638b00 Refs know their type; 2018-07-24 19:14:29 -07:00
bjorn 0214c7605e Support requiring dll/so files;
Still WIP
2018-07-07 13:55:22 -07:00
bjorn 8702d7422f Rewrite boot.lua, main.c, and exception handling;
There are breaking changes:

- lovr.step is removed.
- lovr.run is expected to return a main loop wrapped in a function.  The
  returned function is run as a coroutine to facilitate a cooperative
  main loop.
- lovr.errhand should return a loop function instead of while true-ing.
2018-05-27 19:05:10 -07:00
bjorn 012ba07063 Disable threads in WebVR;
Browser/emscripten support is currently unstable.
2018-05-27 19:05:10 -07:00
bjorn d77b139d21 Make Mesh more lightweight; 2018-03-21 15:36:00 -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 272cce65a2 Weird compile fixes; 2018-02-25 21:41:02 -08:00
bjorn 8fb3421658 Fix everything on windows; 2018-02-23 18:38:53 -08:00
bjorn 583afc9f16 Reorganize main/lovr separation; 2018-02-23 18:38:34 -08:00
bjorn 602e0ced7d Floating point colors;
This is a breaking change.
2017-11-20 21:47:36 -08:00
bjorn 74f585ca8d Use lovrAssert and lovrThrow for better errors; 2017-08-10 01:05:04 -07:00
bjorn 7f1d441cdf Better error handling system;
Mom's spaghetti.
2017-08-10 00:45:19 -07:00
bjorn f91366aa96 Remove old color macros; 2017-08-08 22:31:27 -07:00
bjorn b65673bc3f Color object; 2017-08-08 01:33:52 -07:00
bjorn b84f72f17e Rename vendor to lib; 2017-03-11 02:19:33 -08:00
bjorn 73d8b8aa3e Unicode; 2017-02-09 21:06:07 -08:00
bjorn e80f390151 Try #pragma once; 2017-01-26 02:21:56 -08:00
bjorn 4303846eac Clean up includes; 2017-01-21 18:00:32 -08:00
bjorn 6979b59980 map_int_find -> luax_pushenum; 2017-01-21 17:38:44 -08:00
bjorn 14dfeb688f Get rid of loadImage; 2017-01-21 17:29:20 -08:00
bjorn d6a30fc6d2 Basic sources; 2017-01-05 17:44:00 -08:00
bjorn bd9fec011b headsetControllerGetModel; 2016-11-25 23:32:48 -08:00
bjorn 0c200b9a2c Clean up util naming; 2016-11-19 13:33:40 -08:00
bjorn a743cfd3b6 Initial reference counting system; 2016-11-19 13:33:40 -08:00
bjorn 7e4e9a6108 Clean up includes; 2016-11-19 01:28:01 -08:00
bjorn 954592d8bd Refactor graphics state, especially shaders;
This should improve performance, if not then I have failed.
2016-11-14 15:48:17 -08:00
bjorn 82a1f17b16 Enum helpers; 2016-11-08 14:22:16 -08:00
bjorn 49761a789a Add loadImage to util; 2016-11-08 01:42:31 -08:00
bjorn be13d761e7 Clean up util; 2016-11-07 22:20:39 -08:00
bjorn 93979f9ae6 Clean up matrix; 2016-10-04 15:05:34 -07:00
bjorn 5f884710e6 lovr.graphics.cube test; 2016-09-29 23:18:51 -07:00
bjorn 55481a1e53 rm matrixMultiply; 2016-09-19 23:43:03 -07:00
bjorn 98994d52fb Basic VR rendering; 2016-09-13 17:02:23 -07:00
bjorn 49297ba59b Allow absent main.lua; 2016-08-16 19:11:53 -07:00
bjorn beacc9d287 Improve memory management; 2016-08-08 13:23:40 -07:00
bjorn e708b7f0c8 Better moduling; conf.lua; 2016-07-31 17:21:04 -07:00
bjorn d20d70e695 Model; 2016-07-08 22:27:34 -07:00