From 8ee3f7453bf7b0db5c7358e697e91714d825c87d Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 9 Jun 2019 21:12:25 +0800 Subject: *misc --- source/modules/asura-core/graphics/matrix_stack.h | 25 +---------------------- 1 file changed, 1 insertion(+), 24 deletions(-) (limited to 'source/modules/asura-core/graphics/matrix_stack.h') diff --git a/source/modules/asura-core/graphics/matrix_stack.h b/source/modules/asura-core/graphics/matrix_stack.h index 1a318fa..ae983e7 100644 --- a/source/modules/asura-core/graphics/matrix_stack.h +++ b/source/modules/asura-core/graphics/matrix_stack.h @@ -27,9 +27,6 @@ namespace AsuraEngine MatrixStack(); ~MatrixStack(); - /// - /// 对栈顶元素的操作只能通过以下函数实现 - /// void LoadIdentity(); bool Push(); bool Pop(); @@ -40,39 +37,19 @@ namespace AsuraEngine void LoadMatrix(const AEMath::Matrix44& mat44); void MultMatrix(const AEMath::Matrix44& mat44); - /// - /// 仿射变换 - /// void Rotate(float angle); void Translate(float x, float y); void Scale(float x, float y); - /// - /// 投影变换 - /// void Ortho(float l, float r, float b, float t, float n, float f); - //void Perspective(float fov, float aspect, float near, float far); - //void Frustum(float left, float right, float top, float bottom, float near, float far); - //void LookAt(float x, float y, float z, float cx, float cy, float cz, float ux, float uy, float uz); - /// - /// 获得栈顶的索引,范围在0~ASURA_MAX_MATRIX_STACK_DEPTH-1 - /// uint GetTopIndex(); - - /// - /// 获得最大栈容量,即ASURA_MAX_MATRIX_STACK_DEPTH - /// uint GetCapacity(); private: AEMath::Matrix44 mStack[ASURA_MAX_MATRIX_STACK_DEPTH]; - - /// - /// 栈顶索引,0~ASURA_MAX_MATRIX_STACK_DEPTH-1 - /// - uint8 top; + uint8 top; }; -- cgit v1.1-26-g67d0