mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-19 19:40:00 +03:00
chore(gx): add flag enum to CGxMatrixStack
This commit is contained in:
parent
3549abd87f
commit
912d643e9c
@ -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];
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user