summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/matrix_stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/matrix_stack.cpp')
-rw-r--r--source/modules/asura-core/graphics/matrix_stack.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/source/modules/asura-core/graphics/matrix_stack.cpp b/source/modules/asura-core/graphics/matrix_stack.cpp
index d48a1e0..2211158 100644
--- a/source/modules/asura-core/graphics/matrix_stack.cpp
+++ b/source/modules/asura-core/graphics/matrix_stack.cpp
@@ -9,7 +9,7 @@ namespace AsuraEngine
: top(0)
{
// ջʼջô˱֤ջԶǿգȡֵ
- mStack[top].SetIdentity();
+ m_Stack[top].SetIdentity();
}
MatrixStack::~MatrixStack()
@@ -18,7 +18,7 @@ namespace AsuraEngine
void MatrixStack::LoadIdentity()
{
- mStack[top].SetIdentity();
+ m_Stack[top].SetIdentity();
}
bool MatrixStack::Push()
@@ -26,7 +26,7 @@ namespace AsuraEngine
if (top == ASURA_MAX_MATRIX_STACK_DEPTH - 1)
return false;
++top;
- mStack[top] = mStack[top - 1];
+ m_Stack[top] = m_Stack[top - 1];
return true;
}
@@ -40,7 +40,7 @@ namespace AsuraEngine
AEMath::Matrix44& MatrixStack::GetTop()
{
- return mStack[top];
+ return m_Stack[top];
}
uint MatrixStack::GetTopIndex()
@@ -55,22 +55,22 @@ namespace AsuraEngine
void MatrixStack::Ortho(float left, float right, float bottom, float top, float near, float far)
{
- mStack[this->top].Ortho(left, right, bottom, top, near, far);
+ m_Stack[this->top].Ortho(left, right, bottom, top, near, far);
}
void MatrixStack::Rotate(float angle)
{
- mStack[top].Rotate(angle);
+ m_Stack[top].Rotate(angle);
}
void MatrixStack::Translate(float x, float y)
{
- mStack[top].Translate(x, y);
+ m_Stack[top].Translate(x, y);
}
void MatrixStack::Scale(float x, float y)
{
- mStack[top].Scale(x, y);
+ m_Stack[top].Scale(x, y);
}
}