GLGETOBJECTLABEL(3G)
π NAME π
okay so welcome to GLGETOBJECTLABEL(3G) β yes, thatβs the manual name, and the headerβs manual slot is literally [FIXME: manual], iconic placeholder behavior π. This page is all about glGetObjectLabel: retrieve the label of a named object identified within a namespace. periodt.
β¨ C SPECIFICATION β¨
bestie, hereβs the exact signature β do not lose a single character:
void glGetObjectLabel(GLenum identifier, GLuint name, GLsizei bufSize,
GLsizei * length, char * label);
π PARAMETERS π
identifierβ the namespace from which the name of the object is allocated.nameβ the name of the object whose label to retrieve.bufSizeβ the length of the buffer whose address is inlabel.lengthβ the address of a variable to receive the length of the object label.labelβ the address of a string that will receive the object label.
πΈ DESCRIPTION πΈ
glGetObjectLabel retrieves the label of the object identified by name within the namespace given by identifier. identifier must be one of GL_BUFFER, GL_SHADER, GL_PROGRAM, GL_VERTEX_ARRAY, GL_QUERY, GL_PROGRAM_PIPELINE, GL_TRANSFORM_FEEDBACK, GL_SAMPLER, GL_TEXTURE, GL_RENDERBUFFER, GL_FRAMEBUFFER, to indicate the namespace containing the names of buffers, shaders, programs, vertex array objects, query objects, program pipelines, transform feedback objects, samplers, textures, renderbuffers and frame buffers, respectively.
label is the address of a string that will be used to store the object label. bufSize specifies the number of characters in the array identified by label. length contains the address of a variable which will receive the number of characters in the object label. If length is NULL, then it is ignored and no data is written. Likewise, if label is NULL, or if bufSize is zero then no data is written to label.
π 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 ifbufSizeis zero.
If notNULL,lengthandlabelshould be addresses to which the client has write access, otherwise undefined behavior, including process termination may occur. This is not a drill β undefined behavior is literally giving βwe might crash the whole processβ energy π.
π ASSOCIATED GETS π
glGet() with argument GL_MAX_LABEL_LENGTH.
π VERSION SUPPORT π
OpenGL Version vibe check, no cap. Function / Feature Name: glGetObjectLabel.
- 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()glObjectLabel()glGetObjectPtrLabel()
π 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
okay thatβs the whole page, bestie β source/version: [FIXME: source] Β· date: 08/09/2021 Β· page: GLGETOBJECTLABEL(3G). bye, slay π
π«Ά
π¦ 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