summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/matrix_stack.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-08 22:31:12 +0800
committerchai <chaifix@163.com>2019-04-08 22:31:12 +0800
commit4ea4bbfcb03091cb987dc151d41980ec16f3d18d (patch)
treebdbe56d8c570b5f243744fbfc5a6cdd2c4f6dc4f /source/modules/asura-core/graphics/matrix_stack.cpp
parente47baca4f23db43ec91fbf64d5d06d7c0dbee495 (diff)
*misc
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, 16 insertions, 0 deletions
diff --git a/source/modules/asura-core/graphics/matrix_stack.cpp b/source/modules/asura-core/graphics/matrix_stack.cpp
index 72ffb7d..920dded 100644
--- a/source/modules/asura-core/graphics/matrix_stack.cpp
+++ b/source/modules/asura-core/graphics/matrix_stack.cpp
@@ -55,6 +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);
+ }
+
+ void MatrixStack::Rotate(float angle, float x, float y, float z)
+ {
+ mStack[top].Rotate(angle);
+ }
+
+ void MatrixStack::Translate(float x, float y)
+ {
+ mStack[top].Translate(x, y);
+ }
+
+ void MatrixStack::Scale(float x, float y, float z)
+ {
+ mStack[top].Scale(x, y);
}
}