summaryrefslogtreecommitdiffhomepage
path: root/src/gfx/irodeo_gfx_t.h
diff options
context:
space:
mode:
authorrealtradam <[email protected]>2023-06-22 18:10:26 -0400
committerrealtradam <[email protected]>2023-06-22 18:10:26 -0400
commita4aca2a3c3084882eb2a3912ef3f87e02153c74a (patch)
treed1da6672794c3636212644b79f455bc3d5ca3731 /src/gfx/irodeo_gfx_t.h
parente7e0b682309d8a415dd514a318d1139e3acce85b (diff)
downloadRodeoKit-a4aca2a3c3084882eb2a3912ef3f87e02153c74a.tar.gz
RodeoKit-a4aca2a3c3084882eb2a3912ef3f87e02153c74a.zip
implemented matrix stacks
Diffstat (limited to 'src/gfx/irodeo_gfx_t.h')
-rw-r--r--src/gfx/irodeo_gfx_t.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gfx/irodeo_gfx_t.h b/src/gfx/irodeo_gfx_t.h
index e6b2555..1aa1778 100644
--- a/src/gfx/irodeo_gfx_t.h
+++ b/src/gfx/irodeo_gfx_t.h
@@ -3,7 +3,7 @@
// -- internal --
// public
#include "rodeo/gfx_t.h"
-#include "rodeo/math.h"
+#include "rodeo/math_t.h"
// -- external --
#include "bgfx/c99/bgfx.h"
@@ -22,6 +22,10 @@ struct
}
irodeo_gfx_dimensions_extra_t;
+#define i_type stc_gfx_matrix_stack
+#define i_val rodeo_math_mat4_t
+#include <stc/cstack.h>
+
typedef
struct
{
@@ -55,6 +59,8 @@ struct
uint32_t frame_end;
float frame_time;
irodeo_gfx_dimensions_extra_t dimensions_extra;
+ rodeo_math_mat4_t matrix_stack_top;
+ stc_gfx_matrix_stack matrix_stack;
}
irodeo_gfx_state_t;