aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/graphics/je_gl.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-12-05 12:34:26 +0800
committerchai <chaifix@163.com>2018-12-05 12:34:26 +0800
commitc78bd640228c0b6b9f7c294793c4f2f58b637c67 (patch)
tree2fbd941f8b88b2d9230e04a8b644e25d48f62476 /src/libjin/graphics/je_gl.h
parentadbc170d850a23b219f1718c2cf3e40fadd66ce0 (diff)
*格式化代码
Diffstat (limited to 'src/libjin/graphics/je_gl.h')
-rw-r--r--src/libjin/graphics/je_gl.h29
1 files changed, 23 insertions, 6 deletions
diff --git a/src/libjin/graphics/je_gl.h b/src/libjin/graphics/je_gl.h
index ee0194e..d4f1ced 100644
--- a/src/libjin/graphics/je_gl.h
+++ b/src/libjin/graphics/je_gl.h
@@ -133,22 +133,39 @@ namespace JinEngine
///
///
///
- void useShader(const Shaders::Shader* shader);
+ void useShader(Shaders::Shader* shader);
+
+ ///
+ ///
+ ///
+ void unuseShader();
+
+ Shaders::Shader* getShader();
///
///
///
- void useFont(const Fonts::Font* font);
+ void setFont(Fonts::Font* font);
+
+ ///
+ ///
+ ///
+ void unsetFont();
+
+ ///
+ ///
+ ///
+ Fonts::Font* getFont();
///
///
///
- void useCanvas(const Canvas* canvas);
+ void bindCanvas(Canvas* canvas);
///
///
///
- void unuseShader();
+ void unbindCanvas();
///
///
@@ -180,12 +197,12 @@ namespace JinEngine
///
///
///
- Color mColor;
+ BlendMode mBlendMode;
///
///
///
- BlendMode mBlendMode;
+ Color mColor;
//struct { GLubyte r, g, b, a; } mColor; // current draw color
//struct { GLubyte r, g, b, a; } mBackColor; // previous draw color