From ecfc591f53eeac13e6f6278660b161bf0aa224c1 Mon Sep 17 00:00:00 2001 From: realtradam Date: Thu, 15 Jun 2023 18:31:11 -0400 Subject: clean up a little more --- src/gfx/rodeo_gfx.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/gfx/rodeo_gfx.c b/src/gfx/rodeo_gfx.c index 86f5784..dc9c8a1 100644 --- a/src/gfx/rodeo_gfx.c +++ b/src/gfx/rodeo_gfx.c @@ -255,6 +255,8 @@ rodeo_gfx_frame_begin(void) result_height *= (game_aspect) / window_aspect; } + + //irodeo_print_matrix(irodeo_gfx_state.proj_matrix); // --- // get identity @@ -301,17 +303,15 @@ rodeo_gfx_frame_begin(void) }; // apply translation * orthographic - //glm_translated(old_proj_matrix, old_offset); glm_translate(old_proj_matrix, old_offset); glm_mat4_mul(old_proj_matrix, old_ortho, old_proj_matrix); irodeo_gfx_state.proj_matrix = rodeo_math_mat4_translate(irodeo_gfx_state.proj_matrix, offset); irodeo_gfx_state.proj_matrix = rodeo_math_mat4_multiply(irodeo_gfx_state.proj_matrix, ortho); - //irodeo_print_matrix(irodeo_gfx_state.proj_matrix); - - //bgfx_set_view_transform(0, irodeo_gfx_state.view_matrix.raw, irodeo_gfx_state.proj_matrix.raw); - bgfx_set_view_transform(0, old_view_matrix, old_proj_matrix); + // push the result to bgfx + bgfx_set_view_transform(0, irodeo_gfx_state.view_matrix.raw, irodeo_gfx_state.proj_matrix.raw); + //bgfx_set_view_transform(0, old_view_matrix, old_proj_matrix); // --- -- cgit v1.2.3