#include <Shader.h>
◆ Shader() [1/4]
◆ Shader() [2/4]
| Shader::Shader |
( |
const std::string & | vertexFile, |
|
|
const std::string & | fragmentFile ) |
◆ ~Shader()
◆ Shader() [3/4]
| Shader::Shader |
( |
const Shader & | other | ) |
|
◆ Shader() [4/4]
| Shader::Shader |
( |
Shader && | other | ) |
|
|
noexcept |
◆ activate()
| auto Shader::activate |
( |
| ) |
const->void |
◆ deactivate()
| auto Shader::deactivate |
( |
| ) |
const->void |
◆ ID()
| auto Shader::ID |
( |
| ) |
const->GLuint |
|
inline |
◆ load()
| auto Shader::load |
( |
Stream & | stream | ) |
->void |
◆ loadFile()
| auto Shader::loadFile |
( |
const std::string & | vertexFile, |
|
|
const std::string & | fragmentFile )->void |
◆ name() [1/2]
| auto Shader::name |
( |
| ) |
const->conststd::string & |
|
inlinenodiscard |
- Returns
- the name of the Shader's .json file
◆ name() [2/2]
| auto Shader::name |
( |
const std::string & | name | ) |
->void |
|
inline |
- Parameters
-
| name | the name of the shader's .json file |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ save()
| auto Shader::save |
( |
Stream & | stream | ) |
const->void |
◆ setCamera()
| auto Shader::setCamera |
( |
| ) |
const->void |
Sets the view and projection transforms for the shader The shader to be set must be currently loaded.
◆ from_json
| auto from_json |
( |
const json & | j, |
|
|
Shader & | a )->void |
|
friend |
◆ to_json
◆ _name
| std::string Shader::_name |
|
private |
◆ fragmentPath
| std::string Shader::fragmentPath |
|
private |
◆ shaderID
◆ vertexPath
| std::string Shader::vertexPath |
|
private |
The documentation for this class was generated from the following files:
- /home/egrazil/sites/Brunot/The House/source/Graphics/Shader.h
- /home/egrazil/sites/Brunot/The House/source/Graphics/Shader.cpp