Implement Matrix stack

This commit is contained in:
2024-02-01 21:29:13 -05:00
parent 725241d80b
commit 4f4ce13613
3 changed files with 38 additions and 31 deletions

View File

@@ -3,6 +3,8 @@
namespace JabyEngine {
namespace GTE {
static constexpr auto StackSize = 16;
/*
RotTrans
@@ -123,12 +125,13 @@ namespace JabyEngine {
Optional: replaces current matrix (rotation and parallel) with input
*/
void push_matrix();
void push_matrix(const MATRIX& matrix);
void push_matrix_and_set(const MATRIX& matrix);
/*
Restores the previous stored matrix (rotation and parallel)
*/
void pop_matrix();
MATRIX get_and_pop_matrix();
void pop_matrix();
/*
SetGeomOffset(ofx,ofy)