aboutsummaryrefslogtreecommitdiff
path: root/src/render/jsl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/jsl.h')
-rw-r--r--src/render/jsl.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/render/jsl.h b/src/render/jsl.h
deleted file mode 100644
index 857381c..0000000
--- a/src/render/jsl.h
+++ /dev/null
@@ -1,44 +0,0 @@
-#ifndef __JIN_JSL_H
-#define __JIN_JSL_H
-#include <string>
-#include <map>
-#include "image.h"
-#include "libs/GLee/GLee.h"
-namespace jin
-{
-namespace render
-{
- /**
- * A JSL program for shadering textures which is
- * actually a glsl program.
- */
- class JSLProgram
- {
- public:
-
- void init(const char* program);
-
- void use();
-
- static void unuse();
-
- 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);
- };
-}
-}
-
-#endif