summaryrefslogtreecommitdiff
path: root/source/modules/asura-core/graphics/gfx_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/modules/asura-core/graphics/gfx_device.h')
-rw-r--r--source/modules/asura-core/graphics/gfx_device.h26
1 files changed, 3 insertions, 23 deletions
diff --git a/source/modules/asura-core/graphics/gfx_device.h b/source/modules/asura-core/graphics/gfx_device.h
index 5bb8c6a..c93717f 100644
--- a/source/modules/asura-core/graphics/gfx_device.h
+++ b/source/modules/asura-core/graphics/gfx_device.h
@@ -46,14 +46,8 @@ namespace AsuraEngine
GfxDevice();
~GfxDevice();
- ///
- /// óֵ
- ///
int GetParam(GLParams param);
- ///
- /// ʼOpenGLIJڴOpenGL֮󡣴˺עOpenGLĵַ
- ///
bool Init(const AEMath::Recti& viewport);
bool Inited();
@@ -64,12 +58,8 @@ namespace AsuraEngine
void UnuseShader();
Shader* GetShader();
- // Draw call.
void DrawArrays(GLenum mode, GLint first, GLsizei count);
- ///
- /// Matrix stackز
- ///
void SetMatrixMode(MatrixMode mode);
MatrixMode GetMatrixMode();
void PushMatrix();
@@ -87,20 +77,10 @@ namespace AsuraEngine
void SetDrawColor(float r, float g, float b, float a);
Color& GetDrawColor();
- ///
- /// ʾ
- ///
void WipeError();
bool HasError();
GLenum GetError();
- ///
- /// OpenGL3.0Ժû任ӿڡshaderȲﱣһЩOpenGL״̬ע
- /// ƺȫ̵ģҲ˵Asuraֶ֧߳ȾOpenGLĵĴʹһ
- /// İһHDC\ϣڴض̴߳ģOpenGLҲһ
- /// ض̡߳ͬһ̵߳IJͬHDC\ڿԹͬһOpenGLġΪ
- /// дtextuer\shaderhandle
- ///
struct
{
Shader* shader; ///< ǰʹõshader
@@ -113,9 +93,9 @@ namespace AsuraEngine
#if ASURA_GL_PROFILE
struct
{
- uint drawCall; ///< ͳdrawcall
- uint canvasSwitch; ///< лtextureĴ
- uint shaderSwitch; ///< лshaderĴ
+ uint drawCall; ///< ͳdrawcall
+ uint canvasSwitch; ///< лtextureĴ
+ uint shaderSwitch; ///< лshaderĴ
} stats;
#endif