diff options
author | chai <chaifix@163.com> | 2019-06-08 08:34:52 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-06-08 08:34:52 +0800 |
commit | d7a972a0f16da0fd7bf4c0b70913920216ff3113 (patch) | |
tree | a9146629cbf513200462c3f1223a9e07f3e01862 /source/modules/asura-core/graphics/gfx_device.h | |
parent | 8bfe54676f728076a92d802bb5d064e58265c8f2 (diff) |
*misc
Diffstat (limited to 'source/modules/asura-core/graphics/gfx_device.h')
-rw-r--r-- | source/modules/asura-core/graphics/gfx_device.h | 26 |
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 |