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

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>

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

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BindAttribute()

fastuidraw::gl::BindAttribute::BindAttribute ( c_string  pname,
int  plocation 
)

Ctor.

Parameters
pnamename of attribute in GLSL code
plocationlocation to which to place the attribute

Member Function Documentation

◆ action()

virtual void fastuidraw::gl::BindAttribute::action ( GLuint  glsl_program) const
virtual

To be implemented by a derived class to perform an action before the GLSL program is linked. Default implementation does nothing.

Parameters
glsl_programGL name of GLSL program on which to perform the action.

Implements fastuidraw::gl::PreLinkAction.


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