#include <shader.hpp>
|
| Program () |
|
| ~Program () |
|
void | link () |
|
void | attach_shader (const Eng3D::OpenGL::Shader &shader) |
|
void | use () const |
|
void | set_PVM (glm::mat4 projection, glm::mat4 view, glm::mat4 model) const |
|
void | set_uniform (const std::string &name, glm::mat4 uniform) const |
|
void | set_uniform (const std::string &name, float value1, float value2) const |
|
void | set_uniform (const std::string &name, float value1, float value2, float value3) const |
|
void | set_uniform (const std::string &name, glm::vec2 uniform) const |
|
void | set_uniform (const std::string &name, glm::vec3 uniform) const |
|
void | set_uniform (const std::string &name, glm::vec4 uniform) const |
|
void | set_uniform (const std::string &name, float value1, float value2, float value3, float value4) const |
|
void | set_uniform (const std::string &name, float value) const |
|
void | set_uniform (const std::string &name, int value) const |
|
void | set_texture (int value, const std::string &name, const Eng3D::Texture &texture) const |
|
void | set_texture (int value, const std::string &name, const Eng3D::TextureArray &texture) const |
|
unsigned int | get_id () const |
|
Definition at line 119 of file shader.hpp.
◆ Program()
Eng3D::OpenGL::Program::Program |
( |
| ) |
|
◆ ~Program()
Eng3D::OpenGL::Program::~Program |
( |
| ) |
|
◆ attach_shader()
◆ get_id()
unsigned int Eng3D::OpenGL::Program::get_id |
( |
| ) |
const |
◆ link()
void Eng3D::OpenGL::Program::link |
( |
| ) |
|
◆ set_PVM()
void Eng3D::OpenGL::Program::set_PVM |
( |
glm::mat4 |
projection, |
|
|
glm::mat4 |
view, |
|
|
glm::mat4 |
model |
|
) |
| const |
◆ set_texture() [1/2]
void Eng3D::OpenGL::Program::set_texture |
( |
int |
value, |
|
|
const std::string & |
name, |
|
|
const Eng3D::Texture & |
texture |
|
) |
| const |
◆ set_texture() [2/2]
void Eng3D::OpenGL::Program::set_texture |
( |
int |
value, |
|
|
const std::string & |
name, |
|
|
const Eng3D::TextureArray & |
texture |
|
) |
| const |
◆ set_uniform() [1/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
float |
value |
|
) |
| const |
◆ set_uniform() [2/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
float |
value1, |
|
|
float |
value2 |
|
) |
| const |
◆ set_uniform() [3/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
float |
value1, |
|
|
float |
value2, |
|
|
float |
value3 |
|
) |
| const |
◆ set_uniform() [4/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
float |
value1, |
|
|
float |
value2, |
|
|
float |
value3, |
|
|
float |
value4 |
|
) |
| const |
◆ set_uniform() [5/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
glm::mat4 |
uniform |
|
) |
| const |
◆ set_uniform() [6/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
glm::vec2 |
uniform |
|
) |
| const |
◆ set_uniform() [7/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
glm::vec3 |
uniform |
|
) |
| const |
◆ set_uniform() [8/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
glm::vec4 |
uniform |
|
) |
| const |
◆ set_uniform() [9/9]
void Eng3D::OpenGL::Program::set_uniform |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| const |
◆ use()
void Eng3D::OpenGL::Program::use |
( |
| ) |
const |
The documentation for this class was generated from the following file: