|
Monad Engine da02fba2
> Undercity Codex_
|
#include <ShaderProgram.h>
Public Member Functions | |
| ShaderProgram ()=delete | |
| ShaderProgram (const ShaderProgram &)=delete | |
| ShaderProgram & | operator= (const ShaderProgram &)=delete |
| ShaderProgram (GLuint shaderProgramID) | |
| ~ShaderProgram () | |
| void | Bind () |
| GLint | GetUniformLocation (const std::string &name) |
| void | SetUniform (const std::string &name, float value) |
| void | SetUniform (const std::string &name, float v0, float v1) |
| void | SetUniform (const std::string &name, const glm::mat4 &mat) |
| void | SetUniform (const std::string &name, const glm::vec3 &value) |
| void | SetUniform (const std::string &name, const glm::vec4 &value) |
| void | SetTexture (const std::string &name, Texture *texture) |
Definition at line 11 of file ShaderProgram.h.
|
delete |
|
delete |
|
explicit |
Definition at line 7 of file ShaderProgram.cpp.
| eng::ShaderProgram::~ShaderProgram | ( | ) |
Definition at line 11 of file ShaderProgram.cpp.
| void eng::ShaderProgram::Bind | ( | ) |
Definition at line 16 of file ShaderProgram.cpp.
| GLint eng::ShaderProgram::GetUniformLocation | ( | const std::string & | name | ) |
Definition at line 22 of file ShaderProgram.cpp.
Referenced by SetTexture(), SetUniform(), SetUniform(), SetUniform(), SetUniform(), and SetUniform().
|
delete |
| void eng::ShaderProgram::SetTexture | ( | const std::string & | name, |
| Texture * | texture | ||
| ) |
Definition at line 64 of file ShaderProgram.cpp.
References eng::Texture::GetID(), and GetUniformLocation().
| void eng::ShaderProgram::SetUniform | ( | const std::string & | name, |
| const glm::mat4 & | mat | ||
| ) |
Definition at line 46 of file ShaderProgram.cpp.
References GetUniformLocation().
| void eng::ShaderProgram::SetUniform | ( | const std::string & | name, |
| const glm::vec3 & | value | ||
| ) |
Definition at line 52 of file ShaderProgram.cpp.
References GetUniformLocation().
| void eng::ShaderProgram::SetUniform | ( | const std::string & | name, |
| const glm::vec4 & | value | ||
| ) |
Definition at line 58 of file ShaderProgram.cpp.
References GetUniformLocation().
| void eng::ShaderProgram::SetUniform | ( | const std::string & | name, |
| float | v0, | ||
| float | v1 | ||
| ) |
Definition at line 40 of file ShaderProgram.cpp.
References GetUniformLocation().
| void eng::ShaderProgram::SetUniform | ( | const std::string & | name, |
| float | value | ||
| ) |
Definition at line 34 of file ShaderProgram.cpp.
References GetUniformLocation().