FastUIDraw
|
A ProgramInitializer is a functor object called the first time a Program is bound (i.e. the first time Program::use_program() is called). It's main purpose is to facilitate initializing uniform values. More...
#include <gl_program.hpp>
Public Member Functions | |
virtual void | perform_initialization (Program *pr, bool program_bound) const =0 |
Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter > | |
reference_counted_base (void) | |
Additional Inherited Members | |
Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter > | |
static void | add_reference (const reference_counted_base< T, Counter > *p) |
static void | remove_reference (const reference_counted_base< T, Counter > *p) |
A ProgramInitializer is a functor object called the first time a Program is bound (i.e. the first time Program::use_program() is called). It's main purpose is to facilitate initializing uniform values.
Definition at line 424 of file gl_program.hpp.
|
pure virtual |
To be implemented by a derived class to perform additional one-time actions. Function is called after the GL program object is successfully linked.
pr | Program to initialize |
program_bound | GLSL Program is already bound, the program is NOT bound if the GL/GLES API supports seperable program objects. |
Implemented in fastuidraw::gl::ShaderStorageBlockInitializer, fastuidraw::gl::UniformBlockInitializer, and fastuidraw::gl::UniformInitalizerBase.