From 91a592da979827b1735901388dba8712e6e3ecf3 Mon Sep 17 00:00:00 2001 From: chai Date: Fri, 18 May 2018 08:27:45 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=94=B9JSL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/render/jsl.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/libjin/render/jsl.h') 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 #include +#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); }; -- cgit v1.1-26-g67d0