diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 13:18:24 +1000 |
commit | 0c2f902238010903388b7d9a3af00979340eff2c (patch) | |
tree | b718d72d8761769ec4aefbfd74cbb2d695f89741 /examples/game_demo/game_demo.c | |
parent | 43d915b2ceb3f5e439c09c772e9ebc7542c1a2bb (diff) |
add debug draw bbox and add topology to draw calls
Diffstat (limited to 'examples/game_demo/game_demo.c')
-rw-r--r-- | examples/game_demo/game_demo.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/game_demo/game_demo.c b/examples/game_demo/game_demo.c index b5db6cd..65b31ba 100644 --- a/examples/game_demo/game_demo.c +++ b/examples/game_demo/game_demo.c @@ -107,14 +107,16 @@ 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(), vec3(1.0, 3.0, 1.0)), - vec4(1.0, 0.0, 0.0, 1.0), true); - Immdraw_Cuboid(transform_create(vec3(4.0, 0.0, 0.0), quat_ident(), vec3(3.0, 0.5, 3.0)), - vec4(1.0, 0.0, 0.0, 1.0), true); + // Immdraw_Sphere(transform_create(VEC3_ZERO, quat_ident(), vec3(1.0, 3.0, 1.0)), + // vec4(1.0, 0.0, 0.0, 1.0), true); + // Immdraw_Cuboid(transform_create(vec3(4.0, 0.0, 0.0), quat_ident(), vec3(3.0, 0.5, 3.0)), + // vec4(1.0, 0.0, 0.0, 1.0), true); + Immdraw_Bbox(transform_create(vec3(0.0, 0.0, 0.0), quat_ident(), vec3(2.0, 2.0, 2.0)), + vec4(0.0, 1.0, 0.0, 1.0), true); if (draw_debug) { // draw the player model with shadows - Render_RenderEntities(render_entities->data, render_entities->len); + // Render_RenderEntities(render_entities->data, render_entities->len); // Render_DrawTerrain(); // Skybox_Draw(&skybox, cam); } else { |