47 void validate()
const;
52 void setUniform(
const char* name,
const T& value )
const;
53 void setUniform(
const char* name,
Texture* tex,
int texUnit )
const;
56 void setUniform( gl::GLint location,
const T& value )
const {
57 m_program->setUniform( location, value );
64 void setUniformTexture(
const char* name,
Texture* tex )
const;
66 globjects::Program* getProgramObject()
const;
72 bool fromFile =
true );
77 struct TextureBinding {
79 int m_location { -1 };
80 TextureBinding(
int unit,
int location ) : m_texUnit { unit }, m_location { location } {}
81 TextureBinding() =
default;
92 ShaderConfiguration::getGLSLVersion() );
Represent a Texture of the engine.