|
FastUIDraw
|
A UniformBlockInitializer is used to initalize the binding point used by a bindable uniform (aka Uniform buffer object, see the GL spec on glGetUniformBlockIndex and glUniformBlockBinding. More...
#include <gl_program.hpp>

Public Member Functions | |
| UniformBlockInitializer (c_string name, int binding_point_index) | |
| virtual void | perform_initialization (Program *pr, bool program_bound) const |
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 UniformBlockInitializer is used to initalize the binding point used by a bindable uniform (aka Uniform buffer object, see the GL spec on glGetUniformBlockIndex and glUniformBlockBinding.
Definition at line 1655 of file gl_program.hpp.
| fastuidraw::gl::UniformBlockInitializer::UniformBlockInitializer | ( | c_string | name, |
| int | binding_point_index | ||
| ) |
Ctor.
| name | name of uniform block in GLSL to initialize |
| binding_point_index | value with which to set the uniform |
|
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. |
Implements fastuidraw::gl::ProgramInitializer.
1.8.13