18 #ifndef __H__OCULAR_MATH_MATRIX_STACK__H__
19 #define __H__OCULAR_MATH_MATRIX_STACK__H__
21 #include "Matrix4x4.hpp"
22 #include "Exceptions/Exception.hpp"
100 m_Stack.push(matrix);
116 if(matrix !=
nullptr)
118 *matrix = m_Stack.top();
140 if(matrix !=
nullptr)
142 *matrix = m_Stack.top();
156 return m_Stack.empty();
164 return static_cast<unsigned>(m_Stack.size());
172 while(!m_Stack.empty())
182 std::stack<Matrix4x4> m_Stack;
void combine(Matrix4x4 const matrix)
Definition: MatrixStack.hpp:75
unsigned size()
Definition: MatrixStack.hpp:162
void push(Matrix4x4 const matrix)
Definition: MatrixStack.hpp:98
Note: Once this library is made dynamic, this will no longer be needed.
Definition: Common.hpp:70
bool empty()
Definition: MatrixStack.hpp:154
void loadIdentity()
Definition: MatrixStack.hpp:61
bool pop(Matrix4x4 *matrix)
Definition: MatrixStack.hpp:110
void clear()
Definition: MatrixStack.hpp:170
Definition: MatrixStack.hpp:42
A 4x4 column-major float matrix.
Definition: Matrix4x4.hpp:64
bool peek(Matrix4x4 *matrix)
Definition: MatrixStack.hpp:134