#include <shader.hpp>
◆ Shader()
| Shader::Shader |
( |
const std::string & |
vertexPath, |
|
|
const std::string & |
fragmentPath |
|
) |
| |
Create a shader program from filepaths to a vertex and fragment shader. Use getID() to access the shader program's ID.
◆ ~Shader()
◆ clear()
| static void Shader::clear |
( |
| ) |
|
|
inlinestatic |
◆ getID()
◆ getVec3()
| glm::vec3 Shader::getVec3 |
( |
const std::string & |
name | ) |
|
◆ setBool()
| void Shader::setBool |
( |
const std::string & |
name, |
|
|
bool |
value |
|
) |
| const |
◆ setFloat()
| void Shader::setFloat |
( |
const std::string & |
name, |
|
|
float |
value |
|
) |
| const |
◆ setInt()
| void Shader::setInt |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| const |
◆ setMat4()
| void Shader::setMat4 |
( |
const std::string & |
name, |
|
|
glm::mat4 & |
value |
|
) |
| |
◆ setVec3()
| void Shader::setVec3 |
( |
const std::string & |
name, |
|
|
glm::vec3 & |
value |
|
) |
| |
◆ use()
The documentation for this class was generated from the following files: