FastUIDraw
Public Member Functions | List of all members
fastuidraw::gl::UniformBlockInitializer Class Reference

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>

Inheritance diagram for fastuidraw::gl::UniformBlockInitializer:
Inheritance graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ UniformBlockInitializer()

fastuidraw::gl::UniformBlockInitializer::UniformBlockInitializer ( c_string  name,
int  binding_point_index 
)

Ctor.

Parameters
namename of uniform block in GLSL to initialize
binding_point_indexvalue with which to set the uniform

Member Function Documentation

◆ perform_initialization()

virtual void fastuidraw::gl::UniformBlockInitializer::perform_initialization ( Program pr,
bool  program_bound 
) const
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.

Parameters
prProgram to initialize
program_boundGLSL Program is already bound, the program is NOT bound if the GL/GLES API supports seperable program objects.

Implements fastuidraw::gl::ProgramInitializer.


The documentation for this class was generated from the following file: