logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

glBindTransformFeedback - bind a transform feedback object

Associated Gets

glGet() with argument GL_TRANSFORM_FEEDBACK_BINDING

C Specification

voidglBindTransformFeedback(GLenumtarget,GLuintid);

Description

glBindTransformFeedback binds the transform feedback object with name id to the current GL state.  id
       must be a name previously returned from a call to glGenTransformFeedbacks(). If id has not previously
       been bound, a new transform feedback object with name id and initialized with with the default transform
       state vector is created.

       In the initial state, a default transform feedback object is bound and treated as a transform feedback
       object with a name of zero. If the name zero is subsequently bound, the default transform feedback object
       is again bound to the GL state.

       While a transform feedback buffer object is bound, GL operations on the target to which it is bound
       affect the bound transform feedback object, and queries of the target to which a transform feedback
       object is bound return state from the bound object. When buffer objects are bound for transform feedback,
       they are attached to the currently bound transform feedback object. Buffer objects are used for trans-
       form feedback only if they are attached to the currently bound transform feedback object.

Errors

GL_INVALID_ENUM is generated if target is not GL_TRANSFORM_FEEDBACK.

       GL_INVALID_OPERATION is generated if the transform feedback operation is active on the currently bound
       transform feedback object, and that operation is not paused.

       GL_INVALID_OPERATION is generated if id is not zero or the name of a transform feedback object returned
       from a previous call to glGenTransformFeedbacks(), or if such a name has been deleted by
       glDeleteTransformFeedbacks().

Name

       glBindTransformFeedback - bind a transform feedback object

Parameters

target
           Specifies the target to which to bind the transform feedback object id.  target must be
           GL_TRANSFORM_FEEDBACK.

       id
           Specifies the name of a transform feedback object reserved by glGenTransformFeedbacks().

See Also

glGenTransformFeedbacks(), glDeleteTransformFeedbacks(), glIsTransformFeedback(),
       glBeginTransformFeedback(), glPauseTransformFeedback(), glResumeTransformFeedback(),

       glEndTransformFeedback

Version Support

       ┌─────────────────────────┬───────────────────────────────────────────────────────────────────────┐
       │                         │                OpenGLVersion                                         │
       ├─────────────────────────┼─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┬─────┤
       │ Function2.02.13.03.13.23.34.04.14.24.34.44.5 │
       │ /                       │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Feature                 │     │     │     │     │     │     │     │     │     │     │     │     │
       │ Name                    │     │     │     │     │     │     │     │     │     │     │     │     │
       ├─────────────────────────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┼─────┤
       │ glBindTransformFeedback │  -  │  -  │  -  │  -  │  -  │  -  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │  ✔  │
       └─────────────────────────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┴─────┘

See Also