1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-09 07:33:33 +00:00
Commit graph

98 commits

Author SHA1 Message Date
bjorn 3c2fc33f1c Fix Model memory leaks; 2016-11-18 02:03:50 -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 7b81618198 BUFFER_INT; 2016-11-14 21:31:17 -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 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 21aba100a1 Refactor lovr.graphics.getDimensions and friends; 2016-11-14 13:47:15 -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 daa942d932 Support BufferTextures; 2016-11-13 17:28:22 -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 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 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 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 91f46929fe Normalize rotation axis vectors; 2016-11-07 22:03:13 -08: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 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 7c5a9585fd Clean up Model better; 2016-10-31 17:35:43 -07:00
bjorn fb6c1c28ed Model; 2016-10-31 13:54:32 -07:00
bjorn 703b0c2af0 Skybox; 2016-10-24 15:02:23 -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 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 15f69d1d8a Start Skybox; 2016-10-15 20:11:54 -07:00
bjorn 7cd168aa46 Custom Buffer vertex attribute formats; 2016-10-09 17:40:02 -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 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 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 c93630dd4c Fix default color; 2016-10-03 11:39:23 -07:00
bjorn 809c71d5b4 lovr.graphics.setLineWidth; 2016-10-01 13:48:31 -07:00