diff options
author | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
commit | e13616b5c40f912853be99f0603f0e4c97b22062 (patch) | |
tree | 6663eab986dbf0317f326bce863edc3d7bf3332e /source/modules/asura-core/graphics/gl.h | |
parent | c8a6a8e2dd6f015a31b4f8191ad945a78fe77f3d (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/gl.h')
-rw-r--r-- | source/modules/asura-core/graphics/gl.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/source/modules/asura-core/graphics/gl.h b/source/modules/asura-core/graphics/gl.h index 3104288..6838bc9 100644 --- a/source/modules/asura-core/graphics/gl.h +++ b/source/modules/asura-core/graphics/gl.h @@ -22,15 +22,14 @@ namespace AsuraEngine enum MatrixMode { MATRIX_PROJECTION = 0, - MATRIX_MODELVIEW, - _MATRIX_COUNT + MATRIX_MODELVIEW = 1, }; /// /// OpenGLģһЩopengl״̬١ڱ༭രڻ£һڶӦһhwnd /// һhdcԼopengl contextʹwglMakeCurrent(hdc, glc)ָǰ̶߳ /// Ⱦhdcopenglglcglм¼ľһ̵߳һڵһOpenGL - /// ĵ״̬ + /// ĵ״ֶ̬֧Ⱦ /// class OpenGL : public AEScripting::Portable<OpenGL> { @@ -69,10 +68,10 @@ namespace AsuraEngine /// struct { - Shader* shader; ///< ǰʹõshader - AEMath::Recti viewport; ///< ǰлHDC߱ڴСı߲ˢʱ䶯 - MatrixStack matrix[_MATRIX_COUNT]; ///< ͶӰ - MatrixMode matrixMode; ///< ǰľ + Shader* shader; ///< ǰʹõshader + AEMath::Recti viewport; ///< ǰлHDC߱ڴСı߲ˢʱ䶯 + MatrixStack matrix[2]; ///< 任 + MatrixMode matrixMode; ///< ǰľ } state; private: |