aboutsummaryrefslogtreecommitdiff
path: root/src/libjin/Graphics/je_gl.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2018-11-16 08:15:30 +0800
committerchai <chaifix@163.com>2018-11-16 08:15:30 +0800
commit0056e468d9c3291443d87bfc05441e375a315433 (patch)
treee39111288999735f72fdaa893a2cb1da63288e24 /src/libjin/Graphics/je_gl.h
parent831e814ce9bdb84e86c06c4a52008f6bdaaa00d6 (diff)
*更新gl
Diffstat (limited to 'src/libjin/Graphics/je_gl.h')
-rw-r--r--src/libjin/Graphics/je_gl.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/libjin/Graphics/je_gl.h b/src/libjin/Graphics/je_gl.h
index 1dddab3..03bd26a 100644
--- a/src/libjin/Graphics/je_gl.h
+++ b/src/libjin/Graphics/je_gl.h
@@ -14,19 +14,20 @@ namespace JinEngine
namespace Graphics
{
- class OpenGL : public ogl2d::OpenGL
+ class OpenGL
+ : public ogl2d::OpenGL
{
public:
///
///
///
Math::Matrix ProjectionMatrix;
-
+/*
///
///
///
Math::Matrix ModelMatrix;
-
+*/
///
///
///
@@ -50,11 +51,13 @@ namespace JinEngine
void rotate(float r);
- const Math::Matrix& getMatrix() { return mMatrix; };
+ Math::Matrix getModelMatrix(float x, float y, float sx, float sy, float r, float ox, float oy);
+
+ Math::Matrix getModelMatrix();
private:
- void calcMatrix();
+ void solve();
Color mCurrentColor;
std::vector<Math::Matrix> mMatrices;