GLCREATEQUERIES(3G)
glCreateQueries(3G) β query objects but make it fashion π β¨
hiii bestie!! welcome to the GLCREATEQUERIES(3G) manual page β manual section 3G, function glCreateQueries, and honestly it's giving short but iconic π. no cap, here's the whole thing with all the deets.
NAME π
glCreateQueries β create query objects, periodt.
C SPECIFICATION π§Ύ
void glCreateQueries(GLenum target, GLsizei n, GLuint *ids);
PARAMETERS π
targetβ tells you the target of each query object you're creating. it's the vibe each new query object is born with β¨nβ the number of query objects to create. yes,n, the classic βhow many?β bestie.idsβ an array where the names of the new query objects get stored. it's the lil home for your fresh names π«Ά
DESCRIPTION π¦
okay so glCreateQueries returns n previously unused query object names in ids. each one represents a brand-new query object with the specified target. slay.
target may be one of these, bestie:
GL_SAMPLES_PASSEDGL_ANY_SAMPLES_PASSEDGL_ANY_SAMPLES_PASSED_CONSERVATIVEGL_TIME_ELAPSEDGL_TIMESTAMPGL_PRIMITIVES_GENERATEDGL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN
and that's the list β no extras, no invented options, iykyk.
ERRORS π
GL_INVALID_ENUMis generated iftargetis not an accepted value. so if you pass a random target, GL is like βnot on the list, bestieβ πGL_INVALID_VALUEis generated ifnis negative. negative query count? not the move, fr fr.
VERSION SUPPORT π₯
function / feature name: glCreateQueries. OpenGL version vibe check:
2.0β-2.1β-3.0β-3.1β-3.2β-3.3β-4.0β-4.1β-4.2β-4.3β-4.4β-4.5ββ
so it's a 4.5-only situation in this chart. the other versions said βnot todayβ β¨
SEE ALSO π
glBeginQuery()glBeginQueryIndexed()glDeleteQueries()glEndQueryglGenQueries()glGetQueryObject()glGetQueryiv()glIsQuery()
COPYRIGHT π
Copyright Β© 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 π (again, because legal said so)
Copyright Β© 2014 Khronos Group
xoxo, your fav manual π β source/version [FIXME: source], dated 08/09/2021, reppin' GLCREATEQUERIES(3G). π
π¦ where this page comes from
- centos-stream 9: gl-manpages 1.1-24.20190306.el9 Β· MIT and Open Publication
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms