aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_gl.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-18 22:32:55 +0800
committerchai <chaifix@163.com>2018-11-18 22:32:55 +0800
commitfc7b4579e49aaeecc81919e247e03f68bd5abfd4 (patch)
tree6547b8c7d3632591358267d06006eddc53216105 /src/libjin/Graphics/je_gl.h
parent3905924fc35f92e5092576c3f6e8fc5db7588cde (diff)
*粒子系统
Diffstat (limited to 'src/libjin/Graphics/je_gl.h')
-rw-r--r--src/libjin/Graphics/je_gl.h65
1 files changed, 61 insertions, 4 deletions
diff --git a/src/libjin/Graphics/je_gl.h b/src/libjin/Graphics/je_gl.h
index fba62a1..134cfee 100644
--- a/src/libjin/Graphics/je_gl.h
+++ b/src/libjin/Graphics/je_gl.h
@@ -4,16 +4,22 @@
#include <vector>
#include "../math/je_matrix.h"
+#include "../math/je_transform.h"
-#include "je_color.h"
#include "GLee/GLee.h"
#include "ogl/OpenGL.h"
+#include "je_color.h"
+
namespace JinEngine
{
namespace Graphics
{
+ /*class Canvas;
+ class Shader;
+ class Font;
+*/
class OpenGL
: public ogl2d::OpenGL
{
@@ -42,6 +48,11 @@ namespace JinEngine
void pop();
///
+ ///
+ ///
+ Math::Matrix getModelViewMatrix(const Math::Transform& tansform);
+
+ ///
/// Get model view matrix.
///
Math::Matrix getModelViewMatrix(float x, float y, float sx, float sy, float r, float ox, float oy);
@@ -61,17 +72,63 @@ namespace JinEngine
///
const Math::Matrix& getProjectionMatrix();
- private:
+ ///
+ ///
+ ///
+ void useShader();
- void solve();
+ ///
+ ///
+ ///
+ void useFont();
- Color mCurrentColor;
+ ///
+ ///
+ ///
+ void useCanvas();
+
+ ///
+ ///
+ ///
+ void unUseShader();
+
+ private:
+ ///
+ ///
+ ///
std::vector<Math::Matrix> mModelViewMatrices;
+
+ ///
+ ///
+ ///
Math::Matrix mModelViewMatrix;
+ ///
+ ///
+ ///
Math::Matrix mProjectionMatrix;
+ ///
+ ///
+ ///
+ Color mCurrentColor;
+/*
+ ///
+ ///
+ ///
+ Canvas* mCurrentCanvas;
+
+ ///
+ ///
+ ///
+ Shader* mCurrentShader;
+
+ ///
+ ///
+ ///
+ Font* mCurrentFont;
+*/
};
// Singleton.