GLGETQUERYIV(3G)
β¨ NAME β¨
glGetQueryiv β returns parameters of a query object target. That's the whole assignment, bestie, and we're gonna slay it. This page is GLGETQUERYIV(3G), living in the [FIXME: manual] manual slot like the iconic placeholder it is. π
π» C SPECIFICATION π»
void glGetQueryiv(GLenum target, GLenum pname, GLint * params);
No cap, that's the whole signature. β¨
π PARAMETERS π
targetβ specifies a query object target. Must beGL_SAMPLES_PASSED,GL_ANY_SAMPLES_PASSED,GL_ANY_SAMPLES_PASSED_CONSERVATIVE,GL_PRIMITIVES_GENERATED,GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN,GL_TIME_ELAPSED, orGL_TIMESTAMP.pnameβ specifies the symbolic name of a query object target parameter. Accepted values areGL_CURRENT_QUERYorGL_QUERY_COUNTER_BITS.paramsβ returns the requested data. That's the drop spot. π«Ά
π¦ DESCRIPTION π¦
Okay so glGetQueryiv returns in params a selected parameter of the query object target specified by target. Literally it's the "tell me about this target" call.
pname names a specific query object target parameter. When pname is GL_CURRENT_QUERY, the name of the currently active query for target β or zero if no query is active β will be placed in params. When pname is GL_QUERY_COUNTER_BITS, the implementation-dependent number of bits used to hold the result of queries for target is returned in params. Yes, implementation-dependent: the GL gets to decide, and we respect it. π
πΈ NOTES πΈ
- The
targetGL_ANY_SAMPLES_PASSED_CONSERVATIVEis available only if the GL version is 4.3 or greater. Version check, bestie. π§
If an error is generated, no change is made to the contents ofparams. Soparamsstays untouched β no sneaky little edits. π
π₯ ERRORS π₯
GL_INVALID_ENUMis generated iftargetorpnameis not an accepted value. Wrong value? Boom, that error. π
π VERSION SUPPORT π
Function / Feature Name: glGetQueryiv. Under "OpenGL Version", every one of these gets a big checkmark β:
2.0ββ2.1ββ3.0ββ3.1ββ3.2ββ3.3ββ4.0ββ4.1ββ4.2ββ4.3ββ4.4ββ4.5ββ
All of them, periodt. π
β SEE ALSO β
glGetQueryObject()glIsQuery()
π COPYRIGHT π
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 (again, yes bestie) π
Copyright Β© 2005 Sams PublishingCopyright Β© 2010-2014 Khronos Group
Signing off with footer energy: source/version [FIXME: source], date 08/09/2021, page GLGETQUERYIV(3G). Stay hydrated and keep those params safe. π
β¨
π¦ 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