diff options
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); }; + } } |