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

Conveniance class to hold an array of handles of ProgramInitializer objects. More...

#include <gl_program.hpp>

Public Member Functions

 ProgramInitializerArray (void)
 
 ProgramInitializerArray (const ProgramInitializerArray &obj)
 
ProgramInitializerArrayadd (reference_counted_ptr< ProgramInitializer > h)
 
ProgramInitializerArrayadd_sampler_initializer (c_string uniform_name, int value)
 
ProgramInitializerArrayadd_uniform_block_binding (c_string uniform_name, int value)
 
template<typename T >
ProgramInitializerArrayadd_uniform_initializer (c_string uniform_name, const T &value)
 
void clear (void)
 
ProgramInitializerArrayoperator= (const ProgramInitializerArray &rhs)
 
void perform_initializations (Program *pr, bool program_bound) const
 
void swap (ProgramInitializerArray &obj)
 

Detailed Description

Conveniance class to hold an array of handles of ProgramInitializer objects.

Definition at line 451 of file gl_program.hpp.

Constructor & Destructor Documentation

◆ ProgramInitializerArray() [1/2]

fastuidraw::gl::ProgramInitializerArray::ProgramInitializerArray ( void  )

Ctor.

◆ ProgramInitializerArray() [2/2]

fastuidraw::gl::ProgramInitializerArray::ProgramInitializerArray ( const ProgramInitializerArray obj)

Copy ctor.

Parameters
objvalue from which to copy

Member Function Documentation

◆ add()

ProgramInitializerArray& fastuidraw::gl::ProgramInitializerArray::add ( reference_counted_ptr< ProgramInitializer h)

Add an initializer

Parameters
hhandle to initializer to add

◆ clear()

void fastuidraw::gl::ProgramInitializerArray::clear ( void  )

Clear all elements that have been added via add().

◆ operator=()

ProgramInitializerArray& fastuidraw::gl::ProgramInitializerArray::operator= ( const ProgramInitializerArray rhs)

Assignment operator.

Parameters
rhsvalue from which to copy.

◆ perform_initializations()

void fastuidraw::gl::ProgramInitializerArray::perform_initializations ( Program pr,
bool  program_bound 
) const

For each objected added via add(), call ProgramInitializer::perform_initialization().

Parameters
prProgram to pass along
program_boundif the program is currently bound to the GL context

◆ swap()

void fastuidraw::gl::ProgramInitializerArray::swap ( ProgramInitializerArray obj)

Swap operation

Parameters
objobject with which to swap

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