mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(gx): add flag enum to CGxMatrixStack
This commit is contained in:
parent
3549abd87f
commit
912d643e9c
2 changed files with 7 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#include "gx/CGxMatrixStack.hpp"
|
#include "gx/CGxMatrixStack.hpp"
|
||||||
|
|
||||||
CGxMatrixStack::CGxMatrixStack() {
|
CGxMatrixStack::CGxMatrixStack() {
|
||||||
this->m_flags[0] = 0x1;
|
this->m_flags[0] = F_Identity;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CGxMatrixStack::Pop() {
|
void CGxMatrixStack::Pop() {
|
||||||
|
|
@ -25,7 +25,7 @@ void CGxMatrixStack::Push() {
|
||||||
|
|
||||||
C44Matrix& CGxMatrixStack::Top() {
|
C44Matrix& CGxMatrixStack::Top() {
|
||||||
this->m_dirty = 1;
|
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];
|
return this->m_mtx[this->m_level];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,11 @@
|
||||||
|
|
||||||
class CGxMatrixStack {
|
class CGxMatrixStack {
|
||||||
public:
|
public:
|
||||||
|
// Types
|
||||||
|
enum EMatrixFlags {
|
||||||
|
F_Identity = 0x1,
|
||||||
|
};
|
||||||
|
|
||||||
// Member variables
|
// Member variables
|
||||||
uint32_t m_level = 0;
|
uint32_t m_level = 0;
|
||||||
int8_t m_dirty = 0;
|
int8_t m_dirty = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue