Show All |
Public Member Functions
-
~GlslProg ()
-
voidbind () const
-
GLuintgetHandle () const
-
voiduniform (const std::string &name, bool data) const
-
voiduniform (const std::string &name, int data) const
-
voiduniform (const std::string &name, float data) const
-
voiduniform (const std::string &name, uint32_t data) const
-
voiduniform (int location, uint32_t data) const
-
voiduniform (int location, bool data) const
-
voiduniform (int location, int data) const
-
voiduniform (int location, float data) const
-
voiduniform (const std::string &name, const vec2 &data) const
-
voiduniform (const std::string &name, const vec3 &data) const
-
voiduniform (const std::string &name, const vec4 &data) const
-
voiduniform (int location, const vec2 &data) const
-
voiduniform (int location, const vec3 &data) const
-
voiduniform (int location, const vec4 &data) const
-
voiduniform (const std::string &name, const ivec2 &data) const
-
voiduniform (const std::string &name, const ivec3 &data) const
-
voiduniform (const std::string &name, const ivec4 &data) const
-
voiduniform (int location, const ivec2 &data) const
-
voiduniform (int location, const ivec3 &data) const
-
voiduniform (int location, const ivec4 &data) const
-
voiduniform (const std::string &name, const uvec2 &data) const
-
voiduniform (const std::string &name, const uvec3 &data) const
-
voiduniform (const std::string &name, const uvec4 &data) const
-
voiduniform (int location, const uvec2 &data) const
-
voiduniform (int location, const uvec3 &data) const
-
voiduniform (int location, const uvec4 &data) const
-
voiduniform (const std::string &name, const mat2 &data, bool transpose=false) const
-
voiduniform (const std::string &name, const mat3 &data, bool transpose=false) const
-
voiduniform (const std::string &name, const mat4 &data, bool transpose=false) const
-
voiduniform (int location, const mat2 &data, bool transpose=false) const
-
voiduniform (int location, const mat3 &data, bool transpose=false) const
-
voiduniform (int location, const mat4 &data, bool transpose=false) const
-
voiduniform (const std::string &name, const uint32_t *data, int count) const
-
voiduniform (int location, const uint32_t *data, int count) const
-
voiduniform (const std::string &name, const int *data, int count) const
-
voiduniform (int location, const int *data, int count) const
-
voiduniform (const std::string &name, const float *data, int count) const
-
voiduniform (int location, const float *data, int count) const
-
voiduniform (const std::string &name, const ivec2 *data, int count) const
-
voiduniform (const std::string &name, const vec2 *data, int count) const
-
voiduniform (const std::string &name, const vec3 *data, int count) const
-
voiduniform (const std::string &name, const vec4 *data, int count) const
-
voiduniform (int location, const ivec2 *data, int count) const
-
voiduniform (int location, const vec2 *data, int count) const
-
voiduniform (int location, const vec3 *data, int count) const
-
voiduniform (int location, const vec4 *data, int count) const
-
voiduniform (const std::string &name, const mat2 *data, int count, bool transpose=false) const
-
voiduniform (const std::string &name, const mat3 *data, int count, bool transpose=false) const
-
voiduniform (const std::string &name, const mat4 *data, int count, bool transpose=false) const
-
voiduniform (int location, const mat2 *data, int count, bool transpose=false) const
-
voiduniform (int location, const mat3 *data, int count, bool transpose=false) const
-
voiduniform (int location, const mat4 *data, int count, bool transpose=false) const
-
boolhasAttribSemantic (geom::Attrib semantic) const
-
GLintgetAttribSemanticLocation (geom::Attrib semantic) const
-
GLintoperator[] (geom::Attrib sem) const
-
std::stringgetShaderLog (GLuint handle) const
-
stringcppTypeToGlslTypeName ()
-
voiduniformFunc (int location, const uint32_t &data) const
-
voiduniformFunc (int location, const uvec2 &data) const
-
voiduniformFunc (int location, const uvec3 &data) const
-
voiduniformFunc (int location, const uvec4 &data) const
-
voiduniformFunc (int location, const uint32_t *data, int count) const
-
voiduniformFunc (int location, const int &data) const
-
voiduniformFunc (int location, const ivec2 &data) const
-
voiduniformFunc (int location, const ivec3 &data) const
-
voiduniformFunc (int location, const ivec4 &data) const
-
voiduniformFunc (int location, const int *data, int count) const
-
voiduniformFunc (int location, const ivec2 *data, int count) const
-
voiduniformFunc (int location, const float &data) const
-
voiduniformFunc (int location, const vec2 &data) const
-
voiduniformFunc (int location, const vec3 &data) const
-
voiduniformFunc (int location, const vec4 &data) const
-
voiduniformMatFunc (int location, const mat2 &data, bool transpose) const
-
voiduniformMatFunc (int location, const mat3 &data, bool transpose) const
-
voiduniformMatFunc (int location, const mat4 &data, bool transpose) const
-
voiduniformFunc (int location, const float *data, int count) const
-
voiduniformFunc (int location, const vec2 *data, int count) const
-
voiduniformFunc (int location, const vec3 *data, int count) const
-
voiduniformFunc (int location, const vec4 *data, int count) const
-
voiduniformMatFunc (int location, const mat2 *data, int count, bool transpose) const
-
voiduniformMatFunc (int location, const mat3 *data, int count, bool transpose) const
-
voiduniformMatFunc (int location, const mat4 *data, int count, bool transpose) const
Static Public Member Functions
-
create (const Format &format)
-
create (DataSourceRef vertexShader, DataSourceRef fragmentShader=DataSourceRef(), DataSourceRef geometryShader=DataSourceRef(), DataSourceRef tessEvalShader=DataSourceRef(), DataSourceRef tessCtrlShader=DataSourceRef())
-
create (const std::string &vertexShader, const std::string &fragmentShader=std::string(), const std::string &geometryShader=std::string(), const std::string &tessEvalShader=std::string(), const std::string &tessCtrlShader=std::string())
Protected Member Functions
-
GlslProg (const Format &format)
-
voidbindImpl () const
-
GLuintloadShader (const std::string &shaderSource, const fs::path &shaderPath, GLint shaderType, const ShaderPreprocessorRef &preprocessor)
-
voidlink ()
-
voiduniformFunc (int location, const T &data) const
-
voiduniformMatFunc (int location, const T &data, bool transpose) const
-
voiduniformFunc (int location, const T *data, int count) const
-
voiduniformMatFunc (int location, const T *data, int count, bool transpose) const
-
boolcheckUniformType (GLenum uniformType, std::string &typeName) const
-
voiduniformFunc (int location, const bool &data) const
-
std::stringcppTypeToGlslTypeName ()
Protected Attributes
-
GLuintmHandle
-
std::vector< Attribute >mAttributes
-
std::vector< Uniform >mUniforms
-
std::unique_ptr< UniformValueCache >mUniformValueCache
-
std::set< std::string >mLoggedUniformNames
-
std::set< int >mLoggedUniformLocations
-
std::stringmLabel
-
std::vector< fs::path >mShaderPreprocessorIncludedFiles