RAII wrapper around an OpenGL shader program. load() only replaces the held program on a successfull compile+link, a failed reload keeps whatever program was there, instead of putting the renderer without a valid program. This works as a safeguard to call reloadShaders().
More...
#include <program.hpp>
RAII wrapper around an OpenGL shader program. load() only replaces the held program on a successfull compile+link, a failed reload keeps whatever program was there, instead of putting the renderer without a valid program. This works as a safeguard to call reloadShaders().
◆ GLProgram() [1/3]
◆ ~GLProgram()
| GLProgram::~GLProgram |
( |
| ) |
|
|
inline |
◆ GLProgram() [2/3]
◆ GLProgram() [3/3]
◆ id()
| GLuint GLProgram::id |
( |
| ) |
const |
|
inline |
◆ load()
| bool GLProgram::load |
( |
std::initializer_list< std::pair< GLenum, const char * > > | shaders | ) |
|
|
inline |
◆ operator bool()
| GLProgram::operator bool |
( |
| ) |
const |
|
inlineexplicit |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ reset()
| void GLProgram::reset |
( |
| ) |
|
|
inline |
◆ use()
| void GLProgram::use |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: