diff options
author | chai <chaifix@163.com> | 2018-05-17 23:00:52 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-17 23:00:52 +0800 |
commit | d66b07724d71321545e80a8e12736be0e9a5d24a (patch) | |
tree | 3fa484f48b1b2ce999892942c779ab1d14554110 /src/libjin/render/jsl.h | |
parent | b293e9e2242c08c15e1a3248c6dec301e83652d4 (diff) |
Add audio module
Diffstat (limited to 'src/libjin/render/jsl.h')
-rw-r--r-- | src/libjin/render/jsl.h | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/src/libjin/render/jsl.h b/src/libjin/render/jsl.h index 570235b..4e0a6f0 100644 --- a/src/libjin/render/jsl.h +++ b/src/libjin/render/jsl.h @@ -1,17 +1,16 @@ #ifndef __JIN_JSL_H #define __JIN_JSL_H + #include <string> #include <map> #include "image.h" #include "3rdparty/GLee/GLee.h" + namespace jin { namespace render { - /** - * A JSL program for shadering textures which is - * actually a glsl program. - */ + class JSLProgram { public: @@ -24,20 +23,18 @@ namespace render void sendFloat(const char* name, float number); void sendImage(const char* name, const Image* image); - //void sendMatrix(const char* name, int size, const GLfloat* m, int count); - //void sendCanvas(const char* name, const Canvas& canvas); - + private: + JSLProgram(); - // only id for identify glsl program GLuint pid; static GLint _current_texture_unit; - static GLint _max_texture_units; - static std::map<std::string, GLint> _texture_unit_pool; - static GLint getTextureUnit(const std::string& name); + static GLint _max_texture_units; + static GLint getTextureUnit(const std::string& name); }; + } } |