summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/gl.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/gl.h')
-rw-r--r--source/modules/asura-core/graphics/gl.h7
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: