GLGETVERTEXATTRIBPOI(3G)

πŸ¦‹ NAME πŸ¦‹

okay so welcome to the GLGETVERTEXATTRIBPOI(3G) manual page, bestie πŸ’–. The main character here is glGetVertexAttribPointerv, and its whole thing is: return the address of the specified generic vertex attribute pointer. That's the assignment, and it ate.


πŸ’» C SPECIFICATION πŸ’»

void glGetVertexAttribPointerv(GLuint index, GLenum pname,
                               GLvoid **pointer);

πŸŽ€ PARAMETERS πŸŽ€

  • index β€” specifies the generic vertex attribute parameter to be returned.
  • pname β€” specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER.
  • pointer β€” returns the pointer value.

πŸ’… DESCRIPTION πŸ’…

glGetVertexAttribPointerv returns pointer information. index is the generic vertex attribute to be queried, pname is a symbolic constant indicating the pointer to be returned, and params is a pointer to a location in which to place the returned data.

The pointer returned is a byte offset into the data store of the buffer object that was bound to the GL_ARRAY_BUFFER target (see glBindBuffer()) when the desired pointer was previously specified. yes, that's the lore 🫢.


πŸ”₯ NOTES πŸ”₯

The state returned is retrieved from the currently bound vertex array object. very "you are where you are" of it.

The initial value for each pointer is 0.


😭 ERRORS 😭

  • GL_INVALID_OPERATION is generated if no vertex array object is currently bound.
  • GL_INVALID_VALUE is generated if index is greater than or equal to GL_MAX_VERTEX_ATTRIBS.
  • GL_INVALID_ENUM is generated if pname is not an accepted value.
bestie, these are the vibe checks that will absolutely end you if you ignore them πŸ’€.

πŸ‘‘ ASSOCIATED GETS πŸ‘‘

glGet() with argument GL_MAX_VERTEX_ATTRIBS.


🌈 VERSION SUPPORT 🌈

the function/feature name is glGetVertexAttribPointerv, and it is supported across every version listed here, no cap:

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

🌸 SEE ALSO 🌸

  • glGetVertexAttrib()
  • glVertexAttribPointer()

Copyright Β© 2003-2005 3Dlabs Inc. Ltd. 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 Β© 2003-2005 3Dlabs Inc. Ltd.

Copyright Β© 2010-2014 Khronos Group


okay that's the whole page, bestie β€” sourced from [FIXME: source], dated 08/09/2021, and filed under GLGETVERTEXATTRIBPOI(3G). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from