GLOBJECTLABEL(3G)
πΈ NAME πΈ
okay so this is GLOBJECTLABEL(3G) β manual section 3G, and the header is literally serving [FIXME: manual] placeholder realness π
. The function is glObjectLabel, and it does exactly this: label a named object identified within a namespace. iconic, lowkey.
β¨ C SPECIFICATION β¨
void glObjectLabel(GLenum identifier, GLuint name, GLsizei length,
const char * label);
π PARAMETERS π
identifierβ the namespace from which the name of the object is allocated.nameβ the name of the object to label.lengthβ the length of the label to be used for the object.labelβ the address of a string containing the label to assign to the object.
π¦ DESCRIPTION π¦
glObjectLabel labels the object identified by name within the namespace given by identifier. bestie, identifier has to be one of these, and each one maps to its own little namespace:
GL_BUFFERβ buffersGL_SHADERβ shadersGL_PROGRAMβ programsGL_VERTEX_ARRAYβ vertex array objectsGL_QUERYβ query objectsGL_PROGRAM_PIPELINEβ program pipelinesGL_TRANSFORM_FEEDBACKβ transform feedback objectsGL_SAMPLERβ samplersGL_TEXTUREβ texturesGL_RENDERBUFFERβ renderbuffersGL_FRAMEBUFFERβ frame buffers
label is the address of a string that will be used to label an object. length contains the number of characters in label. If length is negative, it is implied that label contains a null-terminated string. If label is NULL, any debug label is effectively removed from the object π«Ά.
π ERRORS π
GL_INVALID_ENUMis generated ifidentifieris not one of the accepted object types.GL_INVALID_OPERATIONis generated ifnameis not the name of an existing object of the type specified byidentifier.GL_INVALID_VALUEis generated if the number of characters inlabel, excluding the null terminator whenlengthis negative, is greater than the value ofGL_MAX_LABEL_LENGTH.
π ASSOCIATED GETS π
glGet() with argument GL_MAX_LABEL_LENGTH. that's the one, no cap β¨.
π VERSION SUPPORT π
The table's Function/Feature Name is glObjectLabel, and the OpenGL Version vibe check goes like this:
- 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 π
glPushDebugGroup()glPopDebugGroup()glObjectPtrLabel()
π COPYRIGHT π
Copyright Β© 2013-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 π
Copyright Β© 2013-2014 Khronos Group
and that's the whole page, bestie π the footer says [FIXME: source], dated 08/09/2021, and signed GLOBJECTLABEL(3G) β periodt π.
π¦ 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