FastUIDraw
|
Initialize a uniform via the templated overloaded function fastuidraw::gl::Uniform(). More...
#include <gl_program.hpp>
Public Member Functions | |
UniformInitializer (c_string uniform_name, const T &value) | |
Public Member Functions inherited from fastuidraw::gl::UniformInitalizerBase | |
UniformInitalizerBase (c_string uniform_name) | |
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) | |
Protected Member Functions | |
virtual void | init_uniform (GLuint program, Program::shader_variable_info info, unsigned int array_index, bool program_bound) const |
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) |
Initialize a uniform via the templated overloaded function fastuidraw::gl::Uniform().
Definition at line 1515 of file gl_program.hpp.
|
inline |
Ctor.
uniform_name | name of uniform in GLSL to initialize |
value | value with which to set the uniform |
Definition at line 1523 of file gl_program.hpp.
|
inlineprotectedvirtual |
To be implemented by a derived class to make the GL call to initialize a uniform in a GLSL shader.
program | GL program |
info | information on uniform (name, type, location, etc) |
array_index | index into GLSL uniform if it is an array |
program_bound | true if and only if the program named by program is bound (via glUseProgram). If the program is not bound, then one SHOULD not bind the program and instead use the GL API points to set values of the uniform(s) that do not rely on having the program bound. One can also safely assume that those API points are supported in the case it is not bound (in particular the function family ProgramUniform() can be safely used). |
Implements fastuidraw::gl::UniformInitalizerBase.
Definition at line 1532 of file gl_program.hpp.