mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2026-11-08 15:39:55 +03:00
chore(gx): add flag enum to CGxMatrixStack
This commit is contained in:
2 files changed
+7
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user