Shader Abstract class.
More...
#include <shader.h>
|
| Shader ()=default |
|
virtual | ~Shader ()=default |
|
virtual void | Bind () const =0 |
|
virtual void | SetValue (const std::string &name, float value)=0 |
|
virtual void | SetValue (const std::string &name, int value)=0 |
|
virtual void | SetValue (const std::string &name, glm::mat4 value)=0 |
|
virtual void | SetValue (const std::string &name, glm::vec2 value)=0 |
|
virtual void | SetValue (const std::string &name, glm::vec3 value)=0 |
|
virtual void | SetValue (const std::string &name, glm::vec4 value)=0 |
|
virtual void | SetValue (const std::string &name, unsigned int value)=0 |
|
virtual void | Destroy ()=0 |
|
virtual unsigned int | GetID () const =0 |
|
virtual bool | IsValid () const =0 |
|
|
unsigned int | id |
|
std::unordered_map< std::string, unsigned int > | uniforms |
|
Shader Abstract class.
- Compile the shader
- Bind the shader
- Send uniforms
- Version
- * 0.0.2
- Parameters
-
string | vertex The shader source |
string | fragment The shader source |
◆ Shader()
◆ ~Shader()
virtual Shader::~Shader |
( |
| ) |
|
|
virtualdefault |
◆ Bind()
virtual void Shader::Bind |
( |
| ) |
const |
|
pure virtual |
◆ Destroy()
virtual void Shader::Destroy |
( |
| ) |
|
|
pure virtual |
◆ GetID()
virtual unsigned int Shader::GetID |
( |
| ) |
const |
|
pure virtual |
◆ IsValid()
virtual bool Shader::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ SetValue() [1/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
float |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [2/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
glm::mat4 |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [3/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
glm::vec2 |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [4/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
glm::vec3 |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [5/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
glm::vec4 |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [6/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
◆ SetValue() [7/7]
virtual void Shader::SetValue |
( |
const std::string & |
name, |
|
|
unsigned int |
value |
|
) |
| |
|
pure virtual |
◆ id
◆ uniforms
std::unordered_map<std::string, unsigned int> Shader::uniforms |
|
protected |
The documentation for this class was generated from the following file: