feat(gx): add const getter for top of matrix stack

This commit is contained in:
fallenoak 2023-04-15 10:32:07 -05:00
parent 4a1101bd7d
commit c0e623d02b
No known key found for this signature in database
GPG Key ID: 7628F8E61AEA070D
2 changed files with 5 additions and 0 deletions

View File

@ -28,3 +28,7 @@ C44Matrix& CGxMatrixStack::Top() {
this->m_flags[this->m_level] &= 0xFFFFFFFE;
return this->m_mtx[this->m_level];
}
const C44Matrix& CGxMatrixStack::TopConst() {
return this->m_mtx[this->m_level];
}

View File

@ -17,6 +17,7 @@ class CGxMatrixStack {
void Pop(void);
void Push(void);
C44Matrix& Top(void);
const C44Matrix& TopConst();
};
#endif