#include <shader.h>
yage::Shader::Shader |
( |
std::string const & |
vertex_path, |
|
|
std::string const & |
fragment_path |
|
) |
| |
yage::Shader::Shader |
( |
const Shader & |
| ) |
|
|
delete |
yage::Shader::Shader |
( |
Shader && |
| ) |
|
|
delete |
yage::Shader::~Shader |
( |
| ) |
|
cleans up all the shaders and the program
void yage::Shader::setUniform |
( |
std::string const & |
name, |
|
|
int |
value |
|
) |
| const |
set uniforms of different type
void yage::Shader::setUniform |
( |
std::string const & |
name, |
|
|
float |
value |
|
) |
| const |
void yage::Shader::setUniform |
( |
std::string const & |
name, |
|
|
const glm::mat4 & |
matrix |
|
) |
| const |
void yage::Shader::use |
( |
| ) |
const |
compiles vertex and fragment shader
The documentation for this class was generated from the following files: