GLBINDTRANSFORMFEEDB(3G)

bestie welcome to the GLBINDTRANSFORMFEEDB(3G) page β€” that’s the 3G manual, the header has a lil [FIXME: manual] placeholder, and today’s main character is glBindTransformFeedback. she binds transform feedback objects and honestly? iconic. ✨

πŸŽ€ NAME πŸŽ€

glBindTransformFeedback β€” bind a transform feedback object.

πŸ“œ C SPECIFICATION πŸ“œ

void glBindTransformFeedback(GLenum target, GLuint id);

πŸ’– PARAMETERS πŸ’–

  • target β€” specifies the target to which to bind the transform feedback object id. target must be GL_TRANSFORM_FEEDBACK, no exceptions bestie.
  • id β€” specifies the name of a transform feedback object reserved by glGenTransformFeedbacks().

🌸 DESCRIPTION 🌸

okay so 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 the default transform state vector is created. cute, right? 🫢

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. zero is lowkey the main character too. πŸ‘‘

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 transform feedback only if they are attached to the currently bound transform feedback object. that’s the whole vibe: attachment matters. πŸ’…

πŸ’€ 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().
bestie these errors are not here to play β€” check ya target, check ya id, and check if that transform feedback operation is paused. 😭

πŸ•΅οΈ ASSOCIATED GETS πŸ•΅οΈ

glGet() with argument GL_TRANSFORM_FEEDBACK_BINDING.

πŸ” VERSION SUPPORT πŸ”

the original chart is giving OpenGL Version across the top and Function / Feature Name on the row label: glBindTransformFeedback. here’s the version-by-version vibe check, no cap:

  • 2.0: -
  • 2.1: -
  • 3.0: -
  • 3.1: -
  • 3.2: -
  • 3.3: -
  • 4.0: βœ”
  • 4.1: βœ”
  • 4.2: βœ”
  • 4.3: βœ”
  • 4.4: βœ”
  • 4.5: βœ”

πŸ‘€ SEE ALSO πŸ‘€

  • glGenTransformFeedbacks()
  • glDeleteTransformFeedbacks()
  • glIsTransformFeedback()
  • glBeginTransformFeedback()
  • glPauseTransformFeedback()
  • glResumeTransformFeedback()
  • glEndTransformFeedback

Copyright Β© 2010-2014 Khronos Group. This material may be distributed subject to the terms and conditions set forth in the Open Publication License, v 1.0, 8 June 1999. http://opencontent.org/openpub/.

Copyright Β© 2010-2014 Khronos Group.


and that’s the page!! footer crumbs for the girlies: source is [FIXME: source], date is 08/09/2021, and the manual tag is GLBINDTRANSFORMFEEDB(3G). bye bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from