From 4ea4bbfcb03091cb987dc151d41980ec16f3d18d Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Apr 2019 22:31:12 +0800 Subject: *misc --- source/modules/asura-core/graphics/matrix_stack.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'source/modules/asura-core/graphics/matrix_stack.cpp') 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); } } -- cgit v1.1-26-g67d0