diff options
| author | realtradam <[email protected]> | 2023-06-16 01:18:13 -0400 |
|---|---|---|
| committer | realtradam <[email protected]> | 2023-06-16 01:18:13 -0400 |
| commit | a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807 (patch) | |
| tree | f7e358545f5043df20695d0cf51dcf8caa10cb12 /src/gfx/irodeo_gfx_t.h | |
| parent | 425516a9c53183179c43517f1b6501a790378a05 (diff) | |
| download | RodeoKit-a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807.tar.gz RodeoKit-a47cc44ef7191d03f8ca1b8d4e6b9dd34fba1807.zip | |
matrix math wrapper as well as various refactors for consistant and cleaner code
Diffstat (limited to 'src/gfx/irodeo_gfx_t.h')
| -rw-r--r-- | src/gfx/irodeo_gfx_t.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/gfx/irodeo_gfx_t.h b/src/gfx/irodeo_gfx_t.h index b367e0f..5320d82 100644 --- a/src/gfx/irodeo_gfx_t.h +++ b/src/gfx/irodeo_gfx_t.h @@ -3,11 +3,10 @@ // -- internal -- // public #include "rodeo/gfx_t.h" +#include "rodeo/math.h" // -- external -- #include "bgfx/c99/bgfx.h" -#define CGLM_FORCE_DEPTH_ZERO_TO_ONE -#include "cglm/mat4.h" typedef uint16_t irodeo_index_type_t; @@ -33,8 +32,10 @@ struct bgfx_uniform_handle_t texture_uniforms[2]; float target_width; float target_height; - mat4 view_matrix; - mat4 proj_matrix; + //mat4 view_matrix; + //mat4 proj_matrix; + rodeo_math_mat4_t view_matrix; + rodeo_math_mat4_t proj_matrix; uint64_t frame_count; uint32_t frame_limit; uint32_t frame_start; @@ -44,7 +45,7 @@ struct irodeo_gfx_state_t; struct -irodeo_gfx_texture_internal +irodeo_gfx_texture_2d { bgfx_texture_handle_t texture_bgfx; }; |
