summaryrefslogtreecommitdiff
path: root/examples/game_demo/game_demo.c
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-11 23:40:13 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-08-11 23:40:13 +1000
commit272cc9563315566061bbbd7078f76c76a3484e4b (patch)
tree3264c6acef2e3d3a7dab1c806233062395a5b5f3 /examples/game_demo/game_demo.c
parent3a151b1d1f99b59dfd6d98c1e7520b48b57d6f5e (diff)
removing example targets from xmake.lua and fix identation
Diffstat (limited to 'examples/game_demo/game_demo.c')
-rw-r--r--examples/game_demo/game_demo.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c
index 1b86028..b3fa70d 100644
--- a/examples/game_demo/game_demo.c
+++ b/examples/game_demo/game_demo.c
@@ -107,18 +107,18 @@ int main() {
// Shadow_Run(entities, entity_count);
// Quat rot = quat_from_axis_angle(VEC3_X, HALF_PI, true);
- Immdraw_Sphere(transform_create(VEC3_ZERO, quat_ident(), 0.5), vec4(1.0, 0.0, 0.0, 1.0), false);
- Immdraw_Cuboid(transform_create(vec3(2.0, 0.0, 0.0), quat_ident(), 1.0),
- vec4(1.0, 0.0, 0.0, 1.0), false);
-
- // if (draw_debug) {
- // // draw the player model with shadows
- // Render_RenderEntities(render_entities->data, render_entities->len);
- // // Render_DrawTerrain();
- // Skybox_Draw(&skybox, cam);
- // } else {
- // Shadow_DrawDebugQuad();
- // }
+ // Immdraw_Sphere(transform_create(VEC3_ZERO, quat_ident(), 0.5), vec4(1.0, 0.0, 0.0, 1.0),
+ // false); Immdraw_Cuboid(transform_create(vec3(2.0, 0.0, 0.0), quat_ident(), 1.0),
+ // vec4(1.0, 0.0, 0.0, 1.0), false);
+
+ if (draw_debug) {
+ // draw the player model with shadows
+ Render_RenderEntities(render_entities->data, render_entities->len);
+ // Render_DrawTerrain();
+ Skybox_Draw(&skybox, cam);
+ } else {
+ Shadow_DrawDebugQuad();
+ }
// Terrain_Draw(terrain);
// Grid_Draw();