1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-03 04:53:35 +00:00
Commit graph

250 commits

Author SHA1 Message Date
bjorn b69a7be1ba Better malloc error handling; 2016-11-08 14:55:07 -08:00
bjorn 82a1f17b16 Enum helpers; 2016-11-08 14:22:16 -08:00
bjorn a59f03ef78 Simplify filesystem checks; 2016-11-08 13:47:13 -08:00
bjorn 17601e237b Buffer:getTexture; Buffer:setTexture; 2016-11-08 03:14:50 -08:00
bjorn 136d6b1da7 Texture; lovr.graphics.newTexture; 2016-11-08 03:14:33 -08:00
bjorn a22b158b0c Fix Buffer bug; 2016-11-08 03:13:32 -08:00
bjorn 4dd8bcd40b Add src/lovr/types;
To avoid naming conflicts between modules and types.
2016-11-08 01:48:55 -08:00
bjorn 49761a789a Add loadImage to util; 2016-11-08 01:42:31 -08:00
bjorn 48ff1fa93c lovr.graphics.points; 2016-11-07 23:16:33 -08:00
bjorn 88a8afd775 Reset coordinate system on each frame; 2016-11-07 22:38:45 -08:00
bjorn e8022e1efc Fix segfault when model file does not exist; 2016-11-07 22:34:04 -08:00
bjorn e74149a762 Fix filesystem memory leaks; 2016-11-07 22:23:13 -08:00
bjorn be13d761e7 Clean up util; 2016-11-07 22:20:39 -08:00
bjorn 91f46929fe Normalize rotation axis vectors; 2016-11-07 22:03:13 -08:00
bjorn c4cc9a981a Enable vsync by default; 2016-11-07 22:03:03 -08:00
bjorn 34988bcdd7 lovr.filesystem.append; 2016-11-07 14:31:11 -08:00
bjorn bb98fc5aec lovr.filesystem.write; 2016-11-07 14:31:02 -08:00
bjorn 419a03a202 Filesystem utility functions; 2016-11-07 14:30:32 -08:00
bjorn 7362fafd8c rm lovr.filesystem.write; 2016-11-06 18:39:16 -08:00
bjorn 09359c6793 Clean up setSource; 2016-11-05 16:17:29 -07:00
bjorn 5d2f4746ab lovr.filesystem.write; 2016-11-05 16:17:29 -07:00
bjorn fff1638414 Fix Skybox paths; 2016-11-05 16:17:29 -07:00
bjorn 5188e5d830 Fix Model paths; 2016-11-05 16:17:29 -07:00
bjorn 74c78d7f3e lovr/graphics imports filesystem; 2016-11-05 16:17:29 -07:00
bjorn 0c0429b8d9 lovr.filesystem.read; 2016-11-05 16:17:29 -07:00
bjorn 9743660d5a rm file; 2016-11-05 16:17:29 -07:00
bjorn c33534f703 Start File; 2016-11-05 16:17:29 -07:00
bjorn 956ea96827 Fix initGlfw declaration; 2016-11-05 16:17:16 -07:00
bjorn 1cdde81e35 Improve lovr.timer; 2016-11-04 22:29:38 -07:00
bjorn 38c46106da Model normals; 2016-11-01 21:52:32 -07:00
bjorn 45d4029f6a Math is hard; 2016-11-01 21:52:19 -07:00
bjorn 93c13c8593 Model.draw transform; 2016-11-01 20:56:29 -07:00
bjorn 94a9c0e8cb lovrGraphicsTransform; 2016-11-01 20:48:04 -07:00
bjorn c0e7837ac1 Rough package loader; 2016-11-01 20:27:15 -07:00
bjorn 8869539f97 isDirectory and isFile; 2016-10-31 18:35:00 -07:00
bjorn 7c5a9585fd Clean up Model better; 2016-10-31 17:35:43 -07:00
bjorn e988f7ae41 Start lovr.filesystem; 2016-10-31 17:14:31 -07:00
bjorn fb6c1c28ed Model; 2016-10-31 13:54:32 -07:00
bjorn 9d6b6dddb4 ModelData; 2016-10-29 15:18:10 -07:00
bjorn 4a8c0f479b Fix missing include; 2016-10-29 15:17:49 -07:00
bjorn 629b26ae05 Move includes; 2016-10-28 23:40:31 -07:00
bjorn 9975e695dd Headset display dimensions; 2016-10-24 16:03:29 -07:00
bjorn 769ded9c71 Controller:getHand; 2016-10-24 15:52:16 -07:00
bjorn 703b0c2af0 Skybox; 2016-10-24 15:02:23 -07:00
bjorn 2b11142970 Improve compilation UX; 2016-10-24 14:09:32 -07:00
bjorn 2267396e5a Render to window if headset unavailable; 2016-10-24 13:43:07 -07:00
bjorn b3cd1a103e Improve error messages in main.lua; 2016-10-24 13:39:09 -07:00
bjorn 125e2d0e13 Skybox rough draft; 2016-10-23 19:03:10 -07:00
bjorn 406eab420c lovrGraphicsSetShapeData; 2016-10-23 19:01:27 -07:00
bjorn 4afc3841d8 Fix lovrGraphicsPrepare; 2016-10-23 19:01:00 -07:00
bjorn b446d8d734 Fix lovr.graphics.setShader will nil arg; 2016-10-21 19:21:43 -07:00
bjorn 12476af804 Remove warning about conf.lua; 2016-10-21 19:21:16 -07:00
bjorn 79397fc0e6 Fix shader uniforms; 2016-10-18 15:29:26 -07:00
bjorn 53409920c6 Skybox texture parameters; 2016-10-16 21:21:26 -07:00
bjorn 3d5625c482 Fix lovr.headset.renderTo callback arg; 2016-10-15 20:12:56 -07:00
bjorn 15f69d1d8a Start Skybox; 2016-10-15 20:11:54 -07:00
bjorn 9f9b2ef7e2 Include stb_image I guess ugh; 2016-10-15 16:36:31 -07:00
bjorn 36677afa76 Add stb_image; 2016-10-15 16:32:46 -07:00
bjorn a521cdaa68 Add optional exit code to lovr.event.quit; 2016-10-13 23:50:57 -07:00
bjorn 7cd168aa46 Custom Buffer vertex attribute formats; 2016-10-09 17:40:02 -07:00
bjorn 6c4100e7fb Fix ModelData memory leak; 2016-10-08 21:54:23 -07:00
bjorn e07dc76bf9 Basic ModelData; 2016-10-08 21:52:58 -07:00
bjorn d35287499f Use constants for shader attributes; 2016-10-07 18:30:37 -07:00
bjorn aa5e9943ef Use explicit generic attribute indices; 2016-10-07 18:28:09 -07:00
bjorn a6df0c58c7 Rework shape internals; 2016-10-06 23:34:35 -07:00
bjorn 78f0c2d947 Clean up, clean up;
Everybody everywhere!
2016-10-04 15:13:57 -07:00
bjorn 93979f9ae6 Clean up matrix; 2016-10-04 15:05:34 -07:00
bjorn 7fab9741fe Ignore Tupfile;
It's messy anyway ;_;
2016-10-04 15:03:21 -07:00
bjorn 3aa079b531 Start Model; Reorganize constructors; 2016-10-03 21:54:27 -07:00
bjorn 8ac95f4038 lovr.graphics.plane; 2016-10-03 20:56:45 -07:00
bjorn a2c51e17ab Fix vive orientation math; 2016-10-03 18:00:33 -07:00
bjorn d66e7c0d81 Improve vive orientation; 2016-10-03 17:02:01 -07:00
bjorn 5ef7a6a588 Graphics culling; 2016-10-03 12:02:49 -07:00
bjorn 2e48c00876 ColorMask is char; 2016-10-03 11:41:31 -07:00
bjorn e6dcfad12d lovrHeadsetIsPresent returns char; 2016-10-03 11:40:20 -07:00
bjorn c93630dd4c Fix default color; 2016-10-03 11:39:23 -07:00
bjorn 2c7e03c0ed Better bools; 2016-10-03 11:26:54 -07:00
bjorn 2391185931 Controller:getOrientation; 2016-10-03 11:16:48 -07:00
bjorn a940a473bb Add missing lovr/headset include; 2016-10-03 11:15:46 -07:00
bjorn c9f937ec19 Controller:getPosition; 2016-10-03 11:12:21 -07:00
bjorn b594b218b2 Controller:isPresent; 2016-10-03 11:12:06 -07:00
bjorn dbc1037d4c Controller type; 2016-10-03 11:11:30 -07:00
bjorn c56050ce92 Add viveGetPose; 2016-10-03 11:10:24 -07:00
bjorn 18b6b4462f lovr.headset.getController API; 2016-10-03 07:40:20 -07:00
bjorn 58a2d60ef7 Controller basics; 2016-10-02 18:09:33 -07:00
bjorn 814b62c323 Add missing interface definitions; 2016-10-01 18:09:18 -07:00
bjorn 7247c7f2ad Fix vive warnings; 2016-10-01 15:13:54 -07:00
bjorn 8c047729df lovr.timer.sleep; 2016-10-01 15:12:12 -07:00
bjorn d14bcfeea0 lovr.headset.setBoundsVisible; 2016-10-01 15:12:12 -07:00
bjorn d98cd40f49 lovr.headset.getTrackingSize; 2016-10-01 14:17:26 -07:00
bjorn 3444d6cb77 Headset organization; 2016-10-01 14:16:02 -07:00
bjorn 809c71d5b4 lovr.graphics.setLineWidth; 2016-10-01 13:48:31 -07:00
bjorn d4f6213f95 Fix lovr.graphics.getShader; 2016-10-01 13:44:20 -07:00
bjorn 9ece6c6c2c Cube rotation;
Angle-axis
2016-10-01 13:39:38 -07:00
bjorn 36cd7887f7 Filled cube basically work; 2016-10-01 12:53:15 -07:00
bjorn 82916b373b Set up draw modes; 2016-10-01 12:10:38 -07:00
bjorn 056efecc21 Add vrChaperone; 2016-09-29 23:54:38 -07:00
bjorn 1e1acfbbd9 Fix cube rendering; 2016-09-29 23:54:31 -07:00
bjorn 5f884710e6 lovr.graphics.cube test; 2016-09-29 23:18:51 -07:00
bjorn d4f20c8379 lovr.graphics.line; 2016-09-29 19:39:25 -07:00