rename upstream-man-pages to upstream-doc
[clinton/guile-figl.git] / upstream-doc / man4 / glObjectLabel.xml
CommitLineData
7faf1d71
AW
1<?xml version="1.0" encoding="UTF-8"?>\r
2<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.1b1//EN"\r
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">\r
4<refentry id="glObjectLabel">\r
5 <refmeta>\r
6 <refmetainfo>\r
7 <copyright>\r
8 <year>2012</year>\r
9 <holder>Khronos Group</holder>\r
10 </copyright>\r
11 </refmetainfo>\r
12 <refentrytitle>glObjectLabel</refentrytitle>\r
13 <manvolnum>3G</manvolnum>\r
14 </refmeta>\r
15 <refnamediv>\r
16 <refname>glObjectLabel</refname>\r
17 <refpurpose>label a named object identified within a namespace</refpurpose>\r
18 </refnamediv>\r
19 <refsynopsisdiv><title>C Specification</title>\r
20 <funcsynopsis>\r
21 <funcprototype>\r
22 <funcdef>void <function>glObjectLabel</function></funcdef>\r
23 <paramdef>GLenum <parameter>identifier</parameter></paramdef>\r
24 <paramdef>GLuint <parameter>name</parameter></paramdef>\r
25 <paramdef>GLsizei <parameter>length</parameter></paramdef>\r
26 <paramdef>const char * <parameter>label</parameter></paramdef>\r
27 </funcprototype>\r
28 </funcsynopsis>\r
29 </refsynopsisdiv>\r
30 <refsect1 id="parameters"><title>Parameters</title>\r
31 <variablelist>\r
32 <varlistentry>\r
33 <term><parameter>identifier</parameter></term>\r
34 <listitem>\r
35 <para>\r
36 The namespace from which the name of the object is allocated.\r
37 </para>\r
38 </listitem>\r
39 </varlistentry>\r
40 <varlistentry>\r
41 <term><parameter>name</parameter></term>\r
42 <listitem>\r
43 <para>\r
44 The name of the object to label.\r
45 </para>\r
46 </listitem>\r
47 </varlistentry>\r
48 <varlistentry>\r
49 <term><parameter>length</parameter></term>\r
50 <listitem>\r
51 <para>\r
52 The length of the label to be used for the object.\r
53 </para>\r
54 </listitem>\r
55 </varlistentry>\r
56 <varlistentry>\r
57 <term><parameter>label</parameter></term>\r
58 <listitem>\r
59 <para>\r
60 The address of a string containing the label to assign to the object.\r
61 </para>\r
62 </listitem>\r
63 </varlistentry>\r
64 </variablelist>\r
65 </refsect1>\r
66 <refsect1 id="description"><title>Description</title>\r
67 <para>\r
68 <function>glObjectLabel</function> labels the object identified by\r
69 <parameter>name</parameter> within the namespace given by <parameter>identifier</parameter>.\r
70 <parameter>identifier</parameter> must be one of <constant>GL_BUFFER</constant>, <constant>GL_SHADER</constant>,\r
71 <constant>GL_PROGRAM</constant>, <constant>GL_VERTEX_ARRAY</constant>, <constant>GL_QUERY</constant>,\r
72 <constant>GL_PROGRAM_PIPELINE</constant>, <constant>GL_TRANSFORM_FEEDBACK</constant>, <constant>GL_SAMPLER</constant>,\r
73 <constant>GL_TEXTURE</constant>, <constant>GL_RENDERBUFFER</constant>, <constant>GL_FRAMEBUFFER</constant>,\r
74 to indicate the namespace containing the names of buffers, shaders, programs, vertex array objects, query objects,\r
75 program pipelines, transform feedback objects, samplers, textures, renderbuffers and frame\r
76 buffers, respectively.\r
77 </para>\r
78 <para>\r
79 <parameter>label</parameter> is the address of a string that will be used to label an object.\r
80 <parameter>length</parameter> contains the number of characters in <parameter>label</parameter>.\r
81 If <parameter>length</parameter> is negative, it is implied that\r
82 <parameter>label</parameter> contains a null-terminated string. If <parameter>label</parameter>\r
83 is NULL, any debug label is effectively removed from the object.\r
84 </para>\r
85 </refsect1>\r
86 <refsect1 id="errors"><title>Errors</title>\r
87 <para>\r
88 <constant>GL_INVALID_ENUM</constant> is generated if <parameter>identifier</parameter>\r
89 is not one of the accepted object types.\r
90 </para>\r
91 <para>\r
92 <constant>GL_INVALID_OPERATION</constant> is generated if <parameter>name</parameter>\r
93 is not the name of an existing object of the type specified by <parameter>identifier</parameter>.\r
94 </para>\r
95 <para>\r
96 <constant>GL_INVALID_VALUE</constant> is generated if the number of characters in\r
97 <parameter>label</parameter>, excluding the null terminator when <parameter>length</parameter>\r
98 is negative, is greater than the value of <constant>GL_MAX_LABEL_LENGTH</constant>.\r
99 </para>\r
100 </refsect1>\r
101 <refsect1 id="associatedgets"><title>Associated Gets</title>\r
102 <para>\r
103 <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_LABEL_LENGTH</constant>.\r
104 </para>\r
105 </refsect1>\r
106 <refsect1 id="seealso"><title>See Also</title>\r
107 <para>\r
108 <citerefentry><refentrytitle>glPushDebugGroup</refentrytitle></citerefentry>,\r
109 <citerefentry><refentrytitle>glPopDebugGroup</refentrytitle></citerefentry>,\r
110 <citerefentry><refentrytitle>glObjectPtrLabel</refentrytitle></citerefentry>.\r
111 </para>\r
112 </refsect1>\r
113 <refsect1 id="Copyright"><title>Copyright</title>\r
114 <para>\r
115 Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r
116 This material may be distributed subject to the terms and conditions set forth in \r
117 the Open Publication License, v 1.0, 8 June 1999.\r
118 <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r
119 </para>\r
120 </refsect1>\r
121</refentry>\r