'\" t .\" Title: glObjectLabel .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 01/03/2018 .\" Manual: [FIXME: manual] .\" Source: [FIXME: source] .\" Language: English .\" .TH "GLOBJECTLABEL" "3G" "01/03/2018" "[FIXME: source]" "[FIXME: manual]" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" glObjectLabel \- label a named object identified within a namespace .SH "C SPECIFICATION" .HP \w'void\ glObjectLabel('u .BI "void glObjectLabel(GLenum\ " "identifier" ", GLuint\ " "name" ", GLsizei\ " "length" ", const\ char\ *\ " "label" ");" .SH "PARAMETERS" .PP \fIidentifier\fR .RS 4 The namespace from which the name of the object is allocated\&. .RE .PP \fIname\fR .RS 4 The name of the object to label\&. .RE .PP \fIlength\fR .RS 4 The length of the label to be used for the object\&. .RE .PP \fIlabel\fR .RS 4 The address of a string containing the label to assign to the object\&. .RE .SH "DESCRIPTION" .PP \fBglObjectLabel\fR labels the object identified by \fIname\fR within the namespace given by \fIidentifier\fR\&. \fIidentifier\fR must be one of \fBGL_BUFFER\fR, \fBGL_SHADER\fR, \fBGL_PROGRAM\fR, \fBGL_VERTEX_ARRAY\fR, \fBGL_QUERY\fR, \fBGL_PROGRAM_PIPELINE\fR, \fBGL_TRANSFORM_FEEDBACK\fR, \fBGL_SAMPLER\fR, \fBGL_TEXTURE\fR, \fBGL_RENDERBUFFER\fR, \fBGL_FRAMEBUFFER\fR, 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\&. .PP \fIlabel\fR is the address of a string that will be used to label an object\&. \fIlength\fR contains the number of characters in \fIlabel\fR\&. If \fIlength\fR is negative, it is implied that \fIlabel\fR contains a null\-terminated string\&. If \fIlabel\fR is NULL, any debug label is effectively removed from the object\&. .SH "ERRORS" .PP \fBGL_INVALID_ENUM\fR is generated if \fIidentifier\fR is not one of the accepted object types\&. .PP \fBGL_INVALID_OPERATION\fR is generated if \fIname\fR is not the name of an existing object of the type specified by \fIidentifier\fR\&. .PP \fBGL_INVALID_VALUE\fR is generated if the number of characters in \fIlabel\fR, excluding the null terminator when \fIlength\fR is negative, is greater than the value of \fBGL_MAX_LABEL_LENGTH\fR\&. .SH "ASSOCIATED GETS" .PP \fBglGet\fR() with argument \fBGL_MAX_LABEL_LENGTH\fR\&. .SH "VERSION SUPPORT" .TS allbox tab(:); lB cB s s s s s s s s s s s lB cB cB cB cB cB cB cB cB cB cB cB cB. T{ T}:T{ \fBOpenGL Version\fR T} T{ \fBFunction / Feature Name\fR T}:T{ \fB2\&.0\fR T}:T{ \fB2\&.1\fR T}:T{ \fB3\&.0\fR T}:T{ \fB3\&.1\fR T}:T{ \fB3\&.2\fR T}:T{ \fB3\&.3\fR T}:T{ \fB4\&.0\fR T}:T{ \fB4\&.1\fR T}:T{ \fB4\&.2\fR T}:T{ \fB4\&.3\fR T}:T{ \fB4\&.4\fR T}:T{ \fB4\&.5\fR T} .T& l c c c c c c c c c c c c. T{ \fBglObjectLabel\fR T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ \- T}:T{ ✔ T}:T{ ✔ T}:T{ ✔ T} .TE .sp 1 .SH "SEE ALSO" .PP \fBglPushDebugGroup\fR(), \fBglPopDebugGroup\fR(), \fBglObjectPtrLabel\fR()\&. .SH "COPYRIGHT" .PP Copyright \(co 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\&. \m[blue]\fBhttp://opencontent\&.org/openpub/\fR\m[]\&. .SH "COPYRIGHT" .br Copyright \(co 2013-2014 Khronos Group .br