|
BlankMat 0.1.0
Free open-source 3D texture creation application
|
Public Member Functions | |
| Shader (const std::string &path, bool loadGeom=false, const std::string &shaderName="") | |
| Shader (const char *vertexPath, const char *fragmentPath, const char *geometryPath=nullptr) | |
| ~Shader () | |
| void | Use () |
| void | SetBool (const std::string &name, bool value) const |
| void | SetInt (const std::string &name, int value) const |
| void | SetFloat (const std::string &name, float value) const |
| void | SetVec2 (const std::string &name, const glm::vec2 &value) const |
| void | SetVec2 (const std::string &name, float x, float y) const |
| void | SetVec3 (const std::string &name, const glm::vec3 &value) const |
| void | SetVec3 (const std::string &name, float x, float y, float z) const |
| void | SetVec4 (const std::string &name, const glm::vec4 &value) const |
| void | SetVec4 (const std::string &name, float x, float y, float z, float w) |
| void | SetMat2 (const std::string &name, const glm::mat2 &mat) const |
| void | SetMat3 (const std::string &name, const glm::mat3 &mat) const |
| void | SetMat4 (const std::string &name, const glm::mat4 &mat) const |
Public Attributes | |
| std::string | name |
| unsigned int | ID |
| Shader::Shader | ( | const std::string & | path, |
| bool | loadGeom = false, |
||
| const std::string & | shaderName = "" |
||
| ) |
| Shader::Shader | ( | const char * | vertexPath, |
| const char * | fragmentPath, | ||
| const char * | geometryPath = nullptr |
||
| ) |
| Shader::~Shader | ( | ) |
| void Shader::SetBool | ( | const std::string & | name, |
| bool | value | ||
| ) | const |
| void Shader::SetFloat | ( | const std::string & | name, |
| float | value | ||
| ) | const |
| void Shader::SetInt | ( | const std::string & | name, |
| int | value | ||
| ) | const |
| void Shader::SetMat2 | ( | const std::string & | name, |
| const glm::mat2 & | mat | ||
| ) | const |
| void Shader::SetMat3 | ( | const std::string & | name, |
| const glm::mat3 & | mat | ||
| ) | const |
| void Shader::SetMat4 | ( | const std::string & | name, |
| const glm::mat4 & | mat | ||
| ) | const |
| void Shader::SetVec2 | ( | const std::string & | name, |
| const glm::vec2 & | value | ||
| ) | const |
| void Shader::SetVec2 | ( | const std::string & | name, |
| float | x, | ||
| float | y | ||
| ) | const |
| void Shader::SetVec3 | ( | const std::string & | name, |
| const glm::vec3 & | value | ||
| ) | const |
| void Shader::SetVec3 | ( | const std::string & | name, |
| float | x, | ||
| float | y, | ||
| float | z | ||
| ) | const |
| void Shader::SetVec4 | ( | const std::string & | name, |
| const glm::vec4 & | value | ||
| ) | const |
| void Shader::SetVec4 | ( | const std::string & | name, |
| float | x, | ||
| float | y, | ||
| float | z, | ||
| float | w | ||
| ) |
| void Shader::Use | ( | ) |
| unsigned int Shader::ID |
| std::string Shader::name |