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

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>

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

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BindFragDataLocation()

fastuidraw::gl::BindFragDataLocation::BindFragDataLocation ( c_string  pname,
int  plocation,
int  pindex = 0 
)

Ctor.

Parameters
pnamename of attribute in GLSL code
plocationlocation for fragment shader output to occupy
pindexindex (used for dual source blending) for fragment shader output to occupy

Member Function Documentation

◆ action()

virtual void fastuidraw::gl::BindFragDataLocation::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: