#include <shader.h>
|
| Shader () |
|
void | init (const std::string &vertexCode, const std::string &fragmentCode) |
|
void | use () |
|
void | setBool (const std::string &name, bool value) const |
|
void | setInt (const std::string &name, int value) const |
|
void | setFloat (const std::string &name, float value) const |
|
void | setVec2 (const std::string &name, const glm::vec2 &value) const |
|
void | setVec2 (const std::string &name, float x, float y) const |
|
void | setVec3 (const std::string &name, const glm::vec3 &value) const |
|
void | setVec3 (const std::string &name, float x, float y, float z) const |
|
void | setVec4 (const std::string &name, const glm::vec4 &value) const |
|
void | setVec4 (const std::string &name, float x, float y, float z, float w) |
|
void | setMat2 (const std::string &name, const glm::mat2 &mat) const |
|
void | setMat3 (const std::string &name, const glm::mat3 &mat) const |
|
void | setMat4 (const std::string &name, const glm::mat4 &mat) const |
|
Definition at line 24 of file shader.h.
◆ Shader()
◆ init()
void ecvl::Shader::init |
( |
const std::string & |
vertexCode, |
|
|
const std::string & |
fragmentCode |
|
) |
| |
|
inline |
◆ setBool()
void ecvl::Shader::setBool |
( |
const std::string & |
name, |
|
|
bool |
value |
|
) |
| const |
|
inline |
◆ setFloat()
void ecvl::Shader::setFloat |
( |
const std::string & |
name, |
|
|
float |
value |
|
) |
| const |
|
inline |
◆ setInt()
void ecvl::Shader::setInt |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| const |
|
inline |
◆ setMat2()
void ecvl::Shader::setMat2 |
( |
const std::string & |
name, |
|
|
const glm::mat2 & |
mat |
|
) |
| const |
|
inline |
◆ setMat3()
void ecvl::Shader::setMat3 |
( |
const std::string & |
name, |
|
|
const glm::mat3 & |
mat |
|
) |
| const |
|
inline |
◆ setMat4()
void ecvl::Shader::setMat4 |
( |
const std::string & |
name, |
|
|
const glm::mat4 & |
mat |
|
) |
| const |
|
inline |
◆ setVec2() [1/2]
void ecvl::Shader::setVec2 |
( |
const std::string & |
name, |
|
|
const glm::vec2 & |
value |
|
) |
| const |
|
inline |
◆ setVec2() [2/2]
void ecvl::Shader::setVec2 |
( |
const std::string & |
name, |
|
|
float |
x, |
|
|
float |
y |
|
) |
| const |
|
inline |
◆ setVec3() [1/2]
void ecvl::Shader::setVec3 |
( |
const std::string & |
name, |
|
|
const glm::vec3 & |
value |
|
) |
| const |
|
inline |
◆ setVec3() [2/2]
void ecvl::Shader::setVec3 |
( |
const std::string & |
name, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| const |
|
inline |
◆ setVec4() [1/2]
void ecvl::Shader::setVec4 |
( |
const std::string & |
name, |
|
|
const glm::vec4 & |
value |
|
) |
| const |
|
inline |
◆ setVec4() [2/2]
void ecvl::Shader::setVec4 |
( |
const std::string & |
name, |
|
|
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
float |
w |
|
) |
| |
|
inline |
◆ use()
void ecvl::Shader::use |
( |
| ) |
|
|
inline |
◆ ID
unsigned int ecvl::Shader::ID |
The documentation for this struct was generated from the following file: