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

A TransformFeedbackVarying encapsulates a call to glTransformFeedbackVarying. Note that if there are multiple TransformFeedbackVarying objects on a single PreLinkActionArray, then only the last one added has effect. More...

#include <gl_program.hpp>

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

Public Member Functions

 TransformFeedbackVarying (GLenum buffer_mode=GL_INTERLEAVED_ATTRIBS)
 
virtual void action (GLuint glsl_program) const
 
string_arraytransform_feedback_varyings (void)
 
const string_arraytransform_feedback_varyings (void) 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 TransformFeedbackVarying encapsulates a call to glTransformFeedbackVarying. Note that if there are multiple TransformFeedbackVarying objects on a single PreLinkActionArray, then only the last one added has effect.

Definition at line 268 of file gl_program.hpp.

Constructor & Destructor Documentation

◆ TransformFeedbackVarying()

fastuidraw::gl::TransformFeedbackVarying::TransformFeedbackVarying ( GLenum  buffer_mode = GL_INTERLEAVED_ATTRIBS)
explicit

Ctor.

Parameters
buffer_modethe buffer mode to use on glTransformFeedbackVarying.

Member Function Documentation

◆ action()

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

◆ transform_feedback_varyings() [1/2]

string_array& fastuidraw::gl::TransformFeedbackVarying::transform_feedback_varyings ( void  )

Return the string_array holding the varyings to capture in transform feedback in the order they will be captured; modify this object the change what is captured in transform feedback.

◆ transform_feedback_varyings() [2/2]

const string_array& fastuidraw::gl::TransformFeedbackVarying::transform_feedback_varyings ( void  ) const

Return the string_array holding the varyings to capture in transform feedback in the order they will be captured.


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