FastUIDraw
|
A BindAttribute inherits from PreLinkAction, it's purpose is to bind named attributes to named locations, i.e. it calls glBindAttributeLocation(). More...
#include <gl_program.hpp>
Public Member Functions | |
BindAttribute (c_string pname, int plocation) | |
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 BindAttribute inherits from PreLinkAction, it's purpose is to bind named attributes to named locations, i.e. it calls glBindAttributeLocation().
Definition at line 192 of file gl_program.hpp.
fastuidraw::gl::BindAttribute::BindAttribute | ( | c_string | pname, |
int | plocation | ||
) |
Ctor.
pname | name of attribute in GLSL code |
plocation | location to which to place the attribute |
|
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.