diff options
author | chai <chaifix@163.com> | 2019-04-08 22:31:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-08 22:31:12 +0800 |
commit | 4ea4bbfcb03091cb987dc151d41980ec16f3d18d (patch) | |
tree | bdbe56d8c570b5f243744fbfc5a6cdd2c4f6dc4f /source/modules/asura-core/graphics/matrix_stack.cpp | |
parent | e47baca4f23db43ec91fbf64d5d06d7c0dbee495 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/matrix_stack.cpp')
-rw-r--r-- | source/modules/asura-core/graphics/matrix_stack.cpp | 16 |
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); } } |