diff options
author | chai <chaifix@163.com> | 2019-04-10 09:03:57 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-10 09:03:57 +0800 |
commit | b5b43bac50ad58949e70bcd1a34b1e6c4765fd51 (patch) | |
tree | 32e8655bf48ca059d818501c8d95fc92ae97b318 /source/modules/asura-core/graphics/gl.h | |
parent | 200f710983fd54b23437cb78d5a03c90b5a47523 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/gl.h')
-rw-r--r-- | source/modules/asura-core/graphics/gl.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source/modules/asura-core/graphics/gl.h b/source/modules/asura-core/graphics/gl.h index 82b9821..f28b983 100644 --- a/source/modules/asura-core/graphics/gl.h +++ b/source/modules/asura-core/graphics/gl.h @@ -61,8 +61,12 @@ namespace AsuraEngine void UseShader(Shader* shader); void UnuseShader(); + Shader* GetShader(); - void Draw(); + /// + /// ͳdrawcall + /// + void DrawArrays(GLenum mode, GLint first, GLsizei count); /// /// Matrix stackز @@ -100,6 +104,7 @@ namespace AsuraEngine AEMath::Recti viewport; ///< ǰлHDC߱ڴСı߲ˢʱ䶯 MatrixStack matrix[3]; ///< model, view, projection MatrixMode matrixMode; ///< ǰľ + uint drawcall; ///< ͳdrawcall } state; private: |