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

A PreLinkActionArray is a conveniance class wrapper over an array of PreLinkAction handles. More...

#include <gl_program.hpp>

Public Member Functions

 PreLinkActionArray (void)
 
 PreLinkActionArray (const PreLinkActionArray &obj)
 
PreLinkActionArrayadd (reference_counted_ptr< PreLinkAction > h)
 
PreLinkActionArrayadd_binding (c_string pname, int plocation)
 
PreLinkActionArrayadd_frag_binding (c_string pname, int plocation, int pindex=0)
 
void execute_actions (GLuint glsl_program) const
 
PreLinkActionArrayoperator= (const PreLinkActionArray &rhs)
 
PreLinkActionArrayset_transform_feedback (const string_array &varyings, GLenum buffer_mode=GL_INTERLEAVED_ATTRIBS)
 
void swap (PreLinkActionArray &obj)
 

Detailed Description

A PreLinkActionArray is a conveniance class wrapper over an array of PreLinkAction handles.

Definition at line 311 of file gl_program.hpp.

Constructor & Destructor Documentation

◆ PreLinkActionArray() [1/2]

fastuidraw::gl::PreLinkActionArray::PreLinkActionArray ( void  )

Ctor.

◆ PreLinkActionArray() [2/2]

fastuidraw::gl::PreLinkActionArray::PreLinkActionArray ( const PreLinkActionArray obj)

Copy ctor.

Parameters
objvalue from which to copy

Member Function Documentation

◆ add()

PreLinkActionArray& fastuidraw::gl::PreLinkActionArray::add ( reference_counted_ptr< PreLinkAction h)

Add a prelink action to execute.

Parameters
hhandle to action to add

◆ add_binding()

PreLinkActionArray& fastuidraw::gl::PreLinkActionArray::add_binding ( c_string  pname,
int  plocation 
)
inline

Provided as a conveniance, equivalent to

add(FASTUIDRAWnew BindAttribute(pname, plocation))
Parameters
pnamename of the attribute
plocationlocation to which to bind the attribute.

Definition at line 357 of file gl_program.hpp.

◆ add_frag_binding()

PreLinkActionArray& fastuidraw::gl::PreLinkActionArray::add_frag_binding ( c_string  pname,
int  plocation,
int  pindex = 0 
)
inline

Provided as a conveniance, equivalent to

add(FASTUIDRAWnew BindFragDataLocation(pname, plocation, pindex))
Parameters
pnamename of the attribute
plocationlocation for fragment shader output to occupy
pindexindex (used for dual source blending) for fragment shader output to occupy

Definition at line 375 of file gl_program.hpp.

◆ execute_actions()

void fastuidraw::gl::PreLinkActionArray::execute_actions ( GLuint  glsl_program) const

Executes PreLinkAction::action() for each of those actions added via add().

◆ operator=()

PreLinkActionArray& fastuidraw::gl::PreLinkActionArray::operator= ( const PreLinkActionArray rhs)

Assignment operator.

Parameters
rhsvalue from which to copy.

◆ set_transform_feedback()

PreLinkActionArray& fastuidraw::gl::PreLinkActionArray::set_transform_feedback ( const string_array varyings,
GLenum  buffer_mode = GL_INTERLEAVED_ATTRIBS 
)
inline

Provided as a conveniance, equivalent to

reference_counted_ptr<TransformFeedbackVarying> h;
h = TransformFeedbackVarying(buffer_mode);
h->transform_feedback_varyings() = varyings;
add(h)
Parameters
varyingslist of varyings to capture for transform feedback
buffer_modebuffer mode (i.e. interleaved or not) for transform feedback

Definition at line 394 of file gl_program.hpp.

◆ swap()

void fastuidraw::gl::PreLinkActionArray::swap ( PreLinkActionArray obj)

Swap operation

Parameters
objobject with which to swap

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