diff options
Diffstat (limited to 'src/libjin/graphics/shaders/je_shader.h')
-rw-r--r-- | src/libjin/graphics/shaders/je_shader.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/libjin/graphics/shaders/je_shader.h b/src/libjin/graphics/shaders/je_shader.h index a279a79..c3ca721 100644 --- a/src/libjin/graphics/shaders/je_shader.h +++ b/src/libjin/graphics/shaders/je_shader.h @@ -169,7 +169,9 @@ namespace JinEngine /// @param name Name of the texture uniform variable. /// @return Texture unit which texture variable be assigned. /// - GLint claimTextureUnit(const std::string& name); + GLint claimTextureUnit(/*const std::string& name*/); + + GLint getUniformLocation(const char* uniforms); /// /// Compile JSL program into GLSL source. @@ -179,10 +181,14 @@ namespace JinEngine /// bool compile(const std::string& program); + static GLint mTextureUnit; + static GLint mAttributeIndex; + GLuint mPID; - GLint mCurrentTextureUnit; - std::map<std::string, GLint> mTextureUnits; - GLint mAttributeIndex; + //GLint mCurrentTextureUnit; + //std::map<std::string, GLint> mTextureUnits; + + std::map<std::string, GLint> mUniformsLocation; }; |