|
RunicVTT Open Source Virtual Tabletop for TTRPG using P2P
|
#include <Shader.h>
Public Member Functions | |
| Shader (const std::string &filepath) | |
| ~Shader () | |
| void | Bind () const |
| void | Unbind () const |
| void | SetUniform1i (const std::string &name, int value) |
| void | SetUniform4f (const std::string &name, float v0, float v1, float f2, float f3) |
| void | SetUniform1f (const std::string &name, float value) |
| void | SetUniformMat4f (const std::string &name, glm::mat4 &matrix) |
| void | SetUniform2f (const std::string &name, float v0, float v1) |
Private Member Functions | |
| ShaderProgramSource | ParseShader (const std::string &filepath) |
| unsigned int | CompileShader (unsigned int type, const std::string &source) |
| unsigned int | CreateShader (const std::string &verxterShader, const std::string &fragmentShader) |
| int | GetUniformLocation (const std::string &name) |
Private Attributes | |
| unsigned int | m_RendererID |
| std::string | m_FilePath |
| std::unordered_map< std::string, int > | m_UniformLocationCache |
| Shader::Shader | ( | const std::string & | filepath | ) |
Definition at line 4 of file Shader.cpp.
| Shader::~Shader | ( | ) |
Definition at line 11 of file Shader.cpp.
| void Shader::Bind | ( | ) | const |
Definition at line 16 of file Shader.cpp.
|
private |
Definition at line 70 of file Shader.cpp.
|
private |
Definition at line 96 of file Shader.cpp.
|
private |
Definition at line 139 of file Shader.cpp.
|
private |
Definition at line 26 of file Shader.cpp.
| void Shader::SetUniform1f | ( | const std::string & | name, |
| float | value ) |
| void Shader::SetUniform1i | ( | const std::string & | name, |
| int | value ) |
| void Shader::SetUniform2f | ( | const std::string & | name, |
| float | v0, | ||
| float | v1 ) |
| void Shader::SetUniform4f | ( | const std::string & | name, |
| float | v0, | ||
| float | v1, | ||
| float | f2, | ||
| float | f3 ) |
| void Shader::SetUniformMat4f | ( | const std::string & | name, |
| glm::mat4 & | matrix ) |
| void Shader::Unbind | ( | ) | const |
Definition at line 21 of file Shader.cpp.
|
private |