Commit Graph

366 Commits

Author SHA1 Message Date
bjorn 0ec31f3625 Texture:refresh; 2016-11-17 23:12:30 -08:00
bjorn 027c0db032 Fix BUFFER_INT access in shaders; 2016-11-17 23:11:58 -08:00
bjorn 4b177a6a21 Fix for int buffer attribute type; 2016-11-14 22:01:44 -08:00
bjorn 7b81618198 BUFFER_INT; 2016-11-14 21:31:17 -08:00
bjorn 0c86495171 Improve Buffer:setVertex error message; 2016-11-14 21:25:46 -08:00
bjorn ee08af588c Make Buffer:setVertexMap error even better; 2016-11-14 20:16:18 -08:00
bjorn 92030baf22 Buffer:setVertexMap better error handling; 2016-11-14 20:14:45 -08:00
bjorn f083285a31 More LÖVEly error messages; 2016-11-14 20:14:36 -08:00
bjorn 3520fca758 Controller:isDown; 2016-11-14 19:57:23 -08:00
bjorn 8fe678b83a Internal Controller rename; 2016-11-14 19:47:24 -08:00
bjorn c358fac8c7 Controller:vibrate; 2016-11-14 19:33:42 -08:00
bjorn 14d29ca100 Controller:getAxis; 2016-11-14 16:22:28 -08:00
bjorn 40f7260dd3 Start controller input; 2016-11-14 16:05:55 -08:00
bjorn 69ecfc550e Optimize switching Buffer vertex maps a lot; 2016-11-14 15:56:05 -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 c2feb24118 Update .gitignore; 2016-11-14 14:47:39 -08:00
bjorn 06c71ed07c Allow loading shaders from files;
The first argument is always the vertex shader.
The second argument is always the fragment shader.
2016-11-14 14:42:40 -08:00
bjorn 5cb11f4b2c Compilation improvements; 2016-11-14 14:16:16 -08:00
bjorn 21aba100a1 Refactor lovr.graphics.getDimensions and friends; 2016-11-14 13:47:15 -08:00
bjorn 36bc1ad9a2 Improve error messages when main.lua has error; 2016-11-14 13:43:34 -08:00
bjorn acde08228c Bind texture after setting buffer;
The `buffer` field was not being initialized to 0, so sometimes
the texture was binding to the wrong target.
2016-11-14 01:00:06 -08:00
bjorn 3ef84510c9 Improve windows platform detection; 2016-11-14 00:02:21 -08:00
bjorn daa942d932 Support BufferTextures; 2016-11-13 17:28:22 -08:00
bjorn b619a65946 Fix Buffer constructor bug; 2016-11-13 02:42:05 -08:00
bjorn 11f35763b7 Fix Buffer attribute indices; 2016-11-13 02:35:26 -08:00
bjorn c0db50b6ae Buffer:setVertices; 2016-11-12 23:18:53 -08:00
bjorn 11d96f1826 lovr.graphics.setPointSize; 2016-11-12 17:38:49 -08:00
bjorn ffde873299 Oh no; 2016-11-12 15:20:04 -08:00
bjorn cffa8df971 Fix Buffer crash on custom byte type; 2016-11-12 04:30:52 -08:00
bjorn 0c8db44e78 Fix model include; 2016-11-12 03:46:40 -08:00
bjorn f891a00b2f rm printf; 2016-11-12 01:49:39 -08:00
bjorn 27d3601c00 Add missing headset bounds functions; 2016-11-12 01:23:22 -08:00
bjorn 811bf67071 Windows fixes; 2016-11-12 01:19:47 -08:00
bjorn 7550da44d8 Model textures; 2016-11-08 14:55:16 -08:00
bjorn 8267733a42 Texture filters; 2016-11-08 14:55:16 -08:00
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