Commit Graph

286 Commits

Author SHA1 Message Date
bjorn 15174b8299 lovr.graphics.setDepthTest; 2016-11-22 20:59:11 -08:00
bjorn 00e07c177b Use luax_checkenum in lovr/graphics; 2016-11-22 20:45:57 -08:00
bjorn 3d89338fec lovr.graphics.triangle; 2016-11-22 20:43:22 -08:00
bjorn 8892b03590 Buffer:setVertexAttribute; 2016-11-20 22:24:57 -08:00
bjorn b557791800 Clean up buffer code; 2016-11-20 17:33:19 -08:00
bjorn 87a49b1903 size->count; 2016-11-20 15:53:36 -08:00
Bjorn Swenson a86425bfe3 Merge pull request #1 from bjornbytes/memory
Reference Counting
2016-11-19 18:26:44 -08:00
bjorn 0eea694bdd Small reference count fixes; 2016-11-19 18:26:10 -08:00
bjorn d014daaa53 Fix texture reference counting; 2016-11-19 14:21:17 -08:00
bjorn 00656b928e Buffer texture reference counting; 2016-11-19 14:14:42 -08:00
bjorn c41204f876 Shader reference counting; 2016-11-19 14:06:41 -08:00
bjorn 0f0c301525 Use generic Lua helpers; 2016-11-19 13:35:03 -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 3813e0b9ce Increase max shader length; 2016-11-18 02:08:49 -08:00
bjorn 67b55ac7f6 Fix Shader memory leaks; 2016-11-18 02:08:36 -08:00
bjorn 3c2fc33f1c Fix Model memory leaks; 2016-11-18 02:03:50 -08:00
bjorn 42c1047b88 Fix small vive memory leak; 2016-11-18 01:28:40 -08:00
bjorn 45618e5f72 Better handling of command line arguments; 2016-11-18 00:33:26 -08:00
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