diff options
Diffstat (limited to 'src/libjin/Graphics/je_gl.h')
-rw-r--r-- | src/libjin/Graphics/je_gl.h | 65 |
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. |