| Vivid
    | 
A class for the Shader. More...
#include <Shader.h>
| Public Member Functions | |
| Shader (const String &filepathVertexShader, const String &filepathPixelShader) | |
| void | Bind () const | 
| void | Unbind () const | 
| void | SetUniform4f (const std::string &name, float f0, float f1, float f2, float f3) | 
| void | SetUniform4f (const std::string &name, const glm::vec4 &matrix) | 
| void | SetUniform3f (const std::string &name, float f0, float f1, float f2) | 
| void | SetUniform3f (const std::string &name, Maths::Vec3 &value) | 
| void | SetUniform1f (const std::string &name, float value) | 
| void | SetUniform1i (const std::string &name, int value) | 
| void | SetUniformMat4f (const std::string &name, const glm::mat4 &matrix) | 
| String | GetVertexShaderPath () | 
| String | GetPixelShaderPath () | 
| unsigned int | GetRendererID () | 
| Static Public Member Functions | |
| static Ref< Shader > | Create (const std::string &filepathVertexShader, const std::string &filepathPixelShader) | 
A class for the Shader.
Shader is a class that contains the vertex and pixel shaders. It can set uniforms and bind the shader. The shader can be created by the Create function.
| Vivid::Shader::Shader | ( | const String & | filepathVertexShader, | 
| const String & | filepathPixelShader | ||
| ) | 
Definition at line 12 of file Shader.cpp.
| Vivid::Shader::~Shader | ( | ) | 
Definition at line 29 of file Shader.cpp.
| void Vivid::Shader::Bind | ( | ) | const | 
Definition at line 34 of file Shader.cpp.
| 
 | static | 
Definition at line 185 of file Shader.cpp.
| void Vivid::Shader::SetUniform1f | ( | const std::string & | name, | 
| float | value | ||
| ) | 
Definition at line 63 of file Shader.cpp.
| void Vivid::Shader::SetUniform1i | ( | const std::string & | name, | 
| int | value | ||
| ) | 
Definition at line 58 of file Shader.cpp.
| void Vivid::Shader::SetUniform3f | ( | const std::string & | name, | 
| Maths::Vec3 & | value | ||
| ) | 
Definition at line 68 of file Shader.cpp.
| void Vivid::Shader::SetUniform4f | ( | const std::string & | name, | 
| const glm::vec4 & | matrix | ||
| ) | 
Definition at line 78 of file Shader.cpp.
| void Vivid::Shader::SetUniform4f | ( | const std::string & | name, | 
| float | f0, | ||
| float | f1, | ||
| float | f2, | ||
| float | f3 | ||
| ) | 
Definition at line 73 of file Shader.cpp.
| void Vivid::Shader::SetUniformMat4f | ( | const std::string & | name, | 
| const glm::mat4 & | matrix | ||
| ) | 
Definition at line 83 of file Shader.cpp.
| void Vivid::Shader::Unbind | ( | ) | const | 
Definition at line 39 of file Shader.cpp.