#include <Shader.h>
|
| | Shader () |
| | Shader (const std::string &vertexFile, const std::string &fragmentFile) |
| | ~Shader () |
| | Shader (const Shader &other) |
| | Shader (Shader &&other) noexcept |
| auto | operator= (const Shader &other) -> Shader & |
| auto | operator= (Shader &&other) noexcept -> Shader & |
| auto | activate () const -> void |
| auto | deactivate () const -> void |
| auto | setCamera () const -> void |
| | Sets the view and projection transforms for the shader The shader to be set must be currently loaded.
|
| auto | ID () const -> GLuint |
| auto | loadFile (const std::string &vertexFile, const std::string &fragmentFile) -> void |
| auto | load (const Stream &stream) -> void |
| auto | save (Stream &stream) const -> void |
| auto | name () const -> const std::string & |
| auto | name (const std::string &name) -> void |
◆ Shader() [1/4]
◆ Shader() [2/4]
| gfx::Shader::Shader |
( |
const std::string & | vertexFile, |
|
|
const std::string & | fragmentFile ) |
◆ ~Shader()
◆ Shader() [3/4]
| gfx::Shader::Shader |
( |
const Shader & | other | ) |
|
◆ Shader() [4/4]
| gfx::Shader::Shader |
( |
Shader && | other | ) |
|
|
noexcept |
◆ activate()
| auto gfx::Shader::activate |
( |
| ) |
const->void |
◆ deactivate()
| auto gfx::Shader::deactivate |
( |
| ) |
const->void |
◆ ID()
| auto gfx::Shader::ID |
( |
| ) |
const->GLuint |
|
inline |
◆ load()
| auto gfx::Shader::load |
( |
const Stream & | stream | ) |
->void |
◆ loadFile()
| auto gfx::Shader::loadFile |
( |
const std::string & | vertexFile, |
|
|
const std::string & | fragmentFile )->void |
◆ name() [1/2]
| auto gfx::Shader::name |
( |
| ) |
const->conststd::string & |
|
inlinenodiscard |
- Returns
- the name of the Shader's .json file
◆ name() [2/2]
| auto gfx::Shader::name |
( |
const std::string & | name | ) |
->void |
|
inline |
- Parameters
-
| name | the name of the shader's .json file |
◆ operator=() [1/2]
| auto gfx::Shader::operator= |
( |
const Shader & | other | ) |
->Shader & |
◆ operator=() [2/2]
◆ save()
| auto gfx::Shader::save |
( |
Stream & | stream | ) |
const->void |
◆ setCamera()
| auto gfx::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 gfx::Shader::_name |
|
private |
◆ fragmentPath
| std::string gfx::Shader::fragmentPath |
|
private |
◆ shaderID
◆ vertexPath
| std::string gfx::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