1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE book PUBLIC
"-//OASIS//DTD DocBook MathML Module V1.1b1//EN"
3 "http://www.oasis-open.org/docbook/xml/mathml/1.1CR1/dbmathml.dtd">
4 <refentry id=
"glObjectPtrLabel">
9 <holder>Khronos Group
</holder>
12 <refentrytitle>glObjectPtrLabel
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glObjectPtrLabel
</refname>
17 <refpurpose>label a a sync object identified by a pointer
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glObjectPtrLabel
</function></funcdef>
23 <paramdef>void *
<parameter>ptr
</parameter></paramdef>
24 <paramdef>GLsizei
<parameter>length
</parameter></paramdef>
25 <paramdef>const char *
<parameter>label
</parameter></paramdef>
29 <refsect1 id=
"parameters"><title>Parameters
</title>
32 <term><parameter>ptr
</parameter></term>
35 A pointer identifying a sync object.
40 <term><parameter>length
</parameter></term>
43 The length of the label to be used for the object.
48 <term><parameter>label
</parameter></term>
51 The address of a string containing the label to assign to the object.
57 <refsect1 id=
"description"><title>Description
</title>
59 <function>glObjectPtrLabel
</function> labels the sync object identified by
60 <parameter>ptr
</parameter>.
63 <parameter>label
</parameter> is the address of a string that will be used to label the object.
64 <parameter>length
</parameter> contains the number of characters in
<parameter>label
</parameter>.
65 If
<parameter>length
</parameter> is negative, it is implied that
66 <parameter>label
</parameter> contains a null-terminated string. If
<parameter>label
</parameter>
67 is NULL, any debug label is effectively removed from the object.
70 <refsect1 id=
"errors"><title>Errors
</title>
72 <constant>GL_INVALID_VALUE
</constant> is generated if
<parameter>ptr
</parameter> is not
76 <constant>GL_INVALID_VALUE
</constant> is generated if the number of characters in
77 <parameter>label
</parameter>, excluding the null terminator when
<parameter>length
</parameter>
78 is negative, is greater than the value of
<constant>GL_MAX_LABEL_LENGTH
</constant>.
81 <refsect1 id=
"associatedgets"><title>Associated Gets
</title>
83 <citerefentry><refentrytitle>glGet
</refentrytitle></citerefentry> with argument
<constant>GL_MAX_LABEL_LENGTH
</constant>.
86 <refsect1 id=
"seealso"><title>See Also
</title>
88 <citerefentry><refentrytitle>glPushDebugGroup
</refentrytitle></citerefentry>,
89 <citerefentry><refentrytitle>glPopDebugGroup
</refentrytitle></citerefentry>,
90 <citerefentry><refentrytitle>glObjectLabel
</refentrytitle></citerefentry>.
93 <refsect1 id=
"Copyright"><title>Copyright
</title>
95 Copyright
<trademark class=
"copyright"></trademark> 2012 Khronos Group.
96 This material may be distributed subject to the terms and conditions set forth in
97 the Open Publication License, v
1.0,
8 June
1999.
98 <ulink url=
"http://opencontent.org/openpub/">http://opencontent.org/openpub/
</ulink>.