1
0
Fork 0
mirror of https://github.com/bjornbytes/lovr.git synced 2024-07-05 22:03:36 +00:00
Commit graph

136 commits

Author SHA1 Message Date
bjorn 57c8dfe146 Clean up includes; 2018-07-04 13:51:35 -07:00
bjorn 183f6003e9 rm mapped buffers mostly; 2018-06-03 19:00:31 -07:00
bjorn 7273811120 Some extra graphics state diffing; 2018-06-02 15:30:26 -07:00
bjorn c0ea3240c3 Organize drawing code; 2018-03-22 09:57:44 -07:00
bjorn e6a76e2a61 rm MatrixType; 2018-03-22 09:57:44 -07:00
bjorn 4c2cd458ad calloc is cool; 2018-03-21 15:36:02 -07:00
bjorn d77b139d21 Make Mesh more lightweight; 2018-03-21 15:36:00 -07:00
bjorn d2e0642b59 Use calloc in lovrAlloc; 2018-03-21 12:56:16 -07:00
bjorn c0d4d33d47 lovr.graphics.newMesh accepts VertexData; 2018-03-11 11:24:11 -07:00
bjorn 6916137dc6 VertexData and TextureData properly extend Blob;
...He hates it!
2018-03-10 21:28:22 -08: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 f75530b9e1 Add support for 2d array textures; Improve mipmaps;
lovr.graphics.newTexture has been changed.
2018-02-20 17:15:47 -08:00
bjorn cca1f32d10 PBR material properties; 2018-02-11 19:16:40 -08:00
bjorn 8ad882e7a4 Add VertexData object; 2018-02-10 17:27:29 -08:00
bjorn 14a54fa7b0 rm MaterialData; 2018-01-29 21:44:32 -08:00
bjorn 032788003a VertexData; IndexData; 2018-01-27 12:51:41 -08:00
bjorn 66d0e42908 Refactor VertexFormat; 2018-01-26 19:11:40 -08:00
bjorn ea7f3d48a2 Refactor MeshFormat; 2018-01-26 19:01:41 -08:00
bjorn 3cce5fd991 ModelData; 2018-01-22 18:24:39 -08:00
bjorn 881a515687 Fix model transform initialization; 2018-01-04 08:49:58 -08:00
bjorn ddd905627b Mesh:drawInstanced; Model:drawInstanced;
No attribute divisors yet.
2017-11-25 19:45:44 -08:00
bjorn cb2265e547 Remove material from graphics state;
It is now local state to models and meshes and can be passed as
an optional first argument to most primitives.
2017-11-25 19:02:28 -08:00
bjorn a9c53372ad Ensure animator is NULL on model creation; 2017-11-25 13:30:02 -08:00
bjorn 1695cc6be1 Subdivide meshes with high bone counts; 2017-11-25 12:03:59 -08:00
bjorn 65418da1ec Use nodeMap to avoid node index lookup; 2017-11-20 21:19:46 -08:00
bjorn 652c31f8d4 Optional pose; 2017-11-20 21:16:16 -08:00
bjorn c1b95c2bd6 More multidimensional arrays; 2017-11-20 18:50:06 -08:00
bjorn 5edd616da8 Cleanup; 2017-11-20 18:42:29 -08:00
bjorn 803cdaa8a5 Early return for renderNode; 2017-11-20 18:19:39 -08:00
bjorn 17ffebd6ae Use computed global transforms instead of local; 2017-11-20 18:17:06 -08:00
bjorn 2f0aab03be Model:getAnimationCount; 2017-11-20 18:15:10 -08:00
bjorn 1a73fcb3cc Use pose instead of boneTransform; 2017-11-20 18:12:08 -08:00
bjorn b9b9a42a05 Everything works but is gross; 2017-11-19 16:45:00 -08:00
bjorn 49ab151b53 WIP; 2017-11-13 17:47:56 -08:00
bjorn 69b5569f9e Model computes bone transforms from Animator; 2017-11-06 20:25:08 -08:00
bjorn c3749eb9bd Model:getAnimator; Model:setAnimator; 2017-11-05 13:41:47 -08:00
bjorn 2c6cb28224 Use references when dealing with model materials; 2017-11-01 23:11:35 -07:00
bjorn 194382643b Add back Model:getAABB; 2017-11-01 19:27:58 -07:00
bjorn ecde864ec4 Use spooky BOOleans everywhere; 2017-10-31 01:14:09 -07:00
bjorn 1ebc527c74 Load vertex colors for models; 2017-10-23 19:24:29 -07:00
bjorn 9e9b0b7b94 Material support for Models; 2017-10-21 15:20:16 -07:00
bjorn e8f2166e00 Remove textures from Models and Meshes; 2017-10-21 12:34:58 -07:00
bjorn b124f7e7c2 Model:getMesh; 2017-10-15 10:26:33 -07:00
bjorn f5e8535726 Use internal scene graph for models;
Allows for loading of more complicated models and multiple materials
for a single model.  Also fixes bugs with Mesh draw ranges.  Model:getAABB
is temporarily removed.
2017-10-14 18:01:00 -07:00
bjorn 03c01cb97a Use access bits better when mapping Meshes; 2017-08-08 01:33:52 -07:00
bjorn b2feefe98a Fix Model:getAABB more; 2017-06-25 04:16:47 -07:00
bjorn 7843e24028 Fix Model:getAABB; 2017-06-25 01:30:19 -07:00
bjorn a13c793769 Model:getAABB; 2017-06-21 18:53:11 -07:00
bjorn 25e6f3ce4e Fix Mesh unmapping; 2017-04-09 13:40:20 -07:00
bjorn 94a5dab7b5 Meshes use mapped buffers; 2017-03-11 17:27:18 -08:00
bjorn a2e1fd8972 Rename Buffer to Mesh; 2017-03-11 14:13:49 -08:00
bjorn 8571783b4f Refactor loaders; 2017-02-19 01:54:58 -08:00
bjorn 4a3f284881 Buffer:draw accepts transform arguments; 2017-01-29 19:12:25 -08:00
bjorn 1f4ecad44b Shuffle things around; 2017-01-20 20:16:59 -08:00
bjorn 8a3d52b3c6 Cleanup ugh; 2017-01-20 19:55:54 -08:00
bjorn 5e2cfcc9bd graphics.cube and Model:draw accept Transform; 2017-01-20 18:39:49 -08:00
bjorn 3dbafc8214 Cleanup; 2017-01-20 18:39:48 -08:00
bjorn e8e2a99e5b Finish internal math library; 2017-01-20 18:39:46 -08:00
bjorn b7d1b1e5dc Style; 2016-11-30 20:32:14 -08:00
bjorn 9b0712bb66 Add default texture; 2016-11-26 18:58:58 -08:00
bjorn 3d18eb99e6 Refactor model loader; 2016-11-25 23:15:04 -08:00
bjorn 9602a3af2f ModelFace always has 3 indices; 2016-11-25 03:16:11 -08:00
bjorn 83af2cacd7 Fix Model texture binding; 2016-11-25 03:15:13 -08:00
bjorn 7ce7c589bb Fix naming error in buffer format; 2016-11-25 03:14:48 -08:00
bjorn 172ecbbd56 Refactor Model constructor; 2016-11-25 00:49:19 -08:00
bjorn 08d63ca19c Model texture rendering; 2016-11-23 00:02:19 -08:00
bjorn cbcaef4e77 Standardize shader uniforms;
All built in uniforms are prefixed with "lovr".
Added helper functions "position" and "color" to improve general use case.
This is a breaking change.
2016-11-22 22:17:49 -08:00
bjorn 87a49b1903 size->count; 2016-11-20 15:53:36 -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 3c2fc33f1c Fix Model memory leaks; 2016-11-18 02:03:50 -08:00
bjorn c0db50b6ae Buffer:setVertices; 2016-11-12 23:18:53 -08:00
bjorn ffde873299 Oh no; 2016-11-12 15:20:04 -08:00
bjorn 7550da44d8 Model textures; 2016-11-08 14:55:16 -08:00
bjorn b69a7be1ba Better malloc error handling; 2016-11-08 14:55:07 -08: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 93c13c8593 Model.draw transform; 2016-11-01 20:56:29 -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 3aa079b531 Start Model; Reorganize constructors; 2016-10-03 21:54:27 -07:00
bjorn 90147ca7bf Separate Lua API; 2016-08-09 23:28:17 -07:00
bjorn c07ea1cb2e Formatting; 2016-08-08 03:43:51 -07:00
bjorn 462b2d5f50 Refactor; 2016-08-07 18:32:37 -07:00
Renamed from src/model.c (Browse further)