GLGENQUERIES(3G)

πŸ’– NAME

glGenQueries β€” generate query object names. (Yep, bestie, this is manual 3G β€” we’re folding that in right here at the top ✨)


🧚 C SPECIFICATION

void glGenQueries(GLsizei n, GLuint * ids);

πŸŽ€ PARAMETERS

  • n β€” Specifies the number of query object names to be generated.
  • ids β€” Specifies an array in which the generated query object names are stored.

πŸ¦‹ DESCRIPTION

okay so glGenQueries returns n query object names in ids. There is no guarantee that the names form a contiguous set of integers β€” like, they don’t have to be cute and consecutive. However, it is guaranteed that none of the returned names was in use immediately before the call to glGenQueries. no cap πŸ’…

Query object names returned by a call to glGenQueries are not returned by subsequent calls, unless they are first deleted with glDeleteQueries(). so don’t expect the same names to come back around unless you actually delete them first, bestie.

No query objects are associated with the returned query object names until they are first used by calling glBeginQuery(). literally no object yet β€” just names chilling until then 🫢


πŸ’€ ERRORS

  • GL_INVALID_VALUE is generated if n is negative. 🚨

πŸ”₯ ASSOCIATED GETS

glIsQuery()


🌈 VERSION SUPPORT

The support table’s Function / Feature Name is glGenQueries, and under OpenGL Version it gets a βœ” on every listed version:

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

it’s giving β€œsupported everywhere on this list,” periodt πŸ‘‘


🌸 SEE ALSO

  • glBeginQuery()
  • glDeleteQueries()
  • glEndQuery

Copyright Β© 2005 Addison-Wesley. 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 Β© 2005 Sams Publishing Copyright Β© 2010-2014 Khronos Group


okay that’s the whole page, bestie πŸ’– the source/version tag is [FIXME: source], and it’s dated 08/09/2021 β€” cute little sign-off for the GLGENQUERIES(3G) page πŸŽ€

πŸ“¦ where this page comes from