FastUIDraw
Public Member Functions | List of all members
fastuidraw::gl::ProgramInitializer Class Referenceabstract

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>

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

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)
 

Detailed Description

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.

Member Function Documentation

◆ perform_initialization()

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

Parameters
prProgram to initialize
program_boundGLSL 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.


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