FastUIDraw
|
A BindFragDataLocation inherits from PreLinkAction, its purpose is to bind a fragment shader out to a named location and index. Using a BindFragDataLocation requires: More...
#include <gl_program.hpp>
Public Member Functions | |
BindFragDataLocation (c_string pname, int plocation, int pindex=0) | |
virtual void | action (GLuint glsl_program) 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 BindFragDataLocation inherits from PreLinkAction, its purpose is to bind a fragment shader out to a named location and index. Using a BindFragDataLocation requires:
Definition at line 238 of file gl_program.hpp.
fastuidraw::gl::BindFragDataLocation::BindFragDataLocation | ( | c_string | pname, |
int | plocation, | ||
int | pindex = 0 |
||
) |
Ctor.
pname | name of attribute in GLSL code |
plocation | location for fragment shader output to occupy |
pindex | index (used for dual source blending) for fragment shader output to occupy |
|
virtual |
To be implemented by a derived class to perform an action before the GLSL program is linked. Default implementation does nothing.
glsl_program | GL name of GLSL program on which to perform the action. |
Implements fastuidraw::gl::PreLinkAction.