From f6c0498c9728a286c13980ed3b60763d02e1b3a0 Mon Sep 17 00:00:00 2001 From: chai Date: Sat, 11 May 2019 12:08:45 +0800 Subject: *misc --- source/modules/asura-core/graphics/gl.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source/modules/asura-core/graphics/gl.h') diff --git a/source/modules/asura-core/graphics/gl.h b/source/modules/asura-core/graphics/gl.h index a4d9de2..6c6ff30 100644 --- a/source/modules/asura-core/graphics/gl.h +++ b/source/modules/asura-core/graphics/gl.h @@ -105,11 +105,12 @@ namespace AsuraEngine /// struct { - Shader* shader; ///< 当前使用的shader - AEMath::Recti viewport; ///< 当前的视区,在切换HDC或者本窗口大小改变或者部分刷新时变动 - MatrixStack matrix[3]; ///< model, view, projection矩阵 - MatrixMode matrixMode; ///< 当前操作的矩阵 - Color drawColor; ///< 绘制的颜色 + Shader* shader; ///< 当前使用的shader + AEMath::Recti viewport; ///< 当前的视区,在切换HDC或者本窗口大小改变或者部分刷新时变动 + MatrixStack matrix[3]; ///< model, view, projection矩阵 + MatrixMode matrixMode; ///< 当前操作的矩阵 + AEMath::Matrix44 mvpMatrix; ///< mvp matrix + Color drawColor; ///< 绘制的颜色 } state; #if ASURA_GL_PROFILE @@ -149,6 +150,8 @@ namespace AsuraEngine //----------------------------------------------------------------------------// + bool mUpdateMVPMatrix; + }; /// -- cgit v1.1-26-g67d0