diff options
author | chai <chaifix@163.com> | 2018-05-18 08:27:45 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-05-18 08:27:45 +0800 |
commit | 91a592da979827b1735901388dba8712e6e3ecf3 (patch) | |
tree | 5b34330fc7ab0027557f4a4dfb1417fbe9acfb44 /src/libjin/render/jsl.h | |
parent | d66b07724d71321545e80a8e12736be0e9a5d24a (diff) |
修改JSL
Diffstat (limited to 'src/libjin/render/jsl.h')
-rw-r--r-- | src/libjin/render/jsl.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/libjin/render/jsl.h b/src/libjin/render/jsl.h index 4e0a6f0..80ef4dc 100644 --- a/src/libjin/render/jsl.h +++ b/src/libjin/render/jsl.h @@ -3,7 +3,9 @@ #include <string> #include <map> +#include "color.h" #include "image.h" +#include "canvas.h" #include "3rdparty/GLee/GLee.h" namespace jin @@ -23,15 +25,22 @@ namespace render void sendFloat(const char* name, float number); void sendImage(const char* name, const Image* image); + void sendVec2(const char* name, float x, float y); + void sendVec3(const char* name, float x, float y, float z); + void sendVec4(const char* name, float x, float y, float z, float w); + void sendCanvas(const char* name, const Canvas* canvas); + void sendColor(const char* name, const color* col); private: JSLProgram(); GLuint pid; + + static JSLProgram* current_JSL_program; - static GLint _current_texture_unit; - static GLint _max_texture_units; + static GLint current_texture_unit; + static GLint max_texture_units; static GLint getTextureUnit(const std::string& name); }; |