summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-31 10:19:38 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-07-31 10:19:38 +1000
commit0a60692230841cbcbbf67acba55d2dbb4730b6cb (patch)
tree1f53fb5144310e6972aa3448c3b68c57e922cb70 /examples
parent547268b5a9cacc514445a59cc482897fd2f201ee (diff)
add empty grid system
Diffstat (limited to 'examples')
-rw-r--r--examples/game_demo/game_demo.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c
index c510ee0..2362a2e 100644
--- a/examples/game_demo/game_demo.c
+++ b/examples/game_demo/game_demo.c
@@ -74,10 +74,11 @@ int main() {
crate_mat.metallic = 0.0;
MaterialHandle crate_mat_handle = Material_pool_insert(Render_GetMaterialPool(), &crate_mat);
// ModelHandle cube_handle = ModelLoad_gltf("assets/models/gltf/Cube/glTF/Cube.gltf", false);
- ModelHandle cube_handle = ModelLoad_gltf("assets/models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf", false);
-
+ ModelHandle cube_handle =
+ ModelLoad_gltf("assets/models/gltf/DamagedHelmet/glTF/DamagedHelmet.gltf", false);
+
RenderEnt_darray* render_entities = RenderEnt_darray_new(1);
-
+
// --- Transforms
// TransformHierarchy* scene_tree = TransformHierarchy_Create();
// TODO: parent camera to model - to start with I can just manually update it every frame
@@ -95,9 +96,10 @@ int main() {
SetCamera(cam);
// BEGIN Draw calls
- RenderEnt_darray_clear(render_entities); // we re-extract every frame
+ RenderEnt_darray_clear(render_entities); // we re-extract every frame
Quat rot = quat_from_axis_angle(VEC3_X, -HALF_PI, true);
- ModelExtractRenderEnts(render_entities, cube_handle, mat4_rotation(rot), REND_ENT_CASTS_SHADOWS);
+ ModelExtractRenderEnts(render_entities, cube_handle, mat4_rotation(rot),
+ REND_ENT_CASTS_SHADOWS);
// Shadow_Run(entities, entity_count);