chore(gx): add flag enum to CGxMatrixStack

This commit is contained in:
fallenoak 2023-04-15 21:21:27 -05:00
parent 3549abd87f
commit 912d643e9c
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#include "gx/CGxMatrixStack.hpp"
CGxMatrixStack::CGxMatrixStack() {
this->m_flags[0] = 0x1;
this->m_flags[0] = F_Identity;
}
void CGxMatrixStack::Pop() {
@ -25,7 +25,7 @@ void CGxMatrixStack::Push() {
C44Matrix& CGxMatrixStack::Top() {
this->m_dirty = 1;
this->m_flags[this->m_level] &= 0xFFFFFFFE;
this->m_flags[this->m_level] &= ~F_Identity;
return this->m_mtx[this->m_level];
}

View File

@ -6,6 +6,11 @@
class CGxMatrixStack {
public:
// Types
enum EMatrixFlags {
F_Identity = 0x1,
};
// Member variables
uint32_t m_level = 0;
int8_t m_dirty = 0;