| 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="glObjectPtrLabel">\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>glObjectPtrLabel</refentrytitle>\r |
| 13 | <manvolnum>3G</manvolnum>\r |
| 14 | </refmeta>\r |
| 15 | <refnamediv>\r |
| 16 | <refname>glObjectPtrLabel</refname>\r |
| 17 | <refpurpose>label a a sync object identified by a pointer</refpurpose>\r |
| 18 | </refnamediv>\r |
| 19 | <refsynopsisdiv><title>C Specification</title>\r |
| 20 | <funcsynopsis>\r |
| 21 | <funcprototype>\r |
| 22 | <funcdef>void <function>glObjectPtrLabel</function></funcdef>\r |
| 23 | <paramdef>void * <parameter>ptr</parameter></paramdef>\r |
| 24 | <paramdef>GLsizei <parameter>length</parameter></paramdef>\r |
| 25 | <paramdef>const char * <parameter>label</parameter></paramdef>\r |
| 26 | </funcprototype>\r |
| 27 | </funcsynopsis>\r |
| 28 | </refsynopsisdiv>\r |
| 29 | <refsect1 id="parameters"><title>Parameters</title>\r |
| 30 | <variablelist>\r |
| 31 | <varlistentry>\r |
| 32 | <term><parameter>ptr</parameter></term>\r |
| 33 | <listitem>\r |
| 34 | <para>\r |
| 35 | A pointer identifying a sync object.\r |
| 36 | </para>\r |
| 37 | </listitem>\r |
| 38 | </varlistentry>\r |
| 39 | <varlistentry>\r |
| 40 | <term><parameter>length</parameter></term>\r |
| 41 | <listitem>\r |
| 42 | <para>\r |
| 43 | The length of the label to be used for the object.\r |
| 44 | </para>\r |
| 45 | </listitem>\r |
| 46 | </varlistentry>\r |
| 47 | <varlistentry>\r |
| 48 | <term><parameter>label</parameter></term>\r |
| 49 | <listitem>\r |
| 50 | <para>\r |
| 51 | The address of a string containing the label to assign to the object.\r |
| 52 | </para>\r |
| 53 | </listitem>\r |
| 54 | </varlistentry>\r |
| 55 | </variablelist>\r |
| 56 | </refsect1>\r |
| 57 | <refsect1 id="description"><title>Description</title>\r |
| 58 | <para>\r |
| 59 | <function>glObjectPtrLabel</function> labels the sync object identified by\r |
| 60 | <parameter>ptr</parameter>.\r |
| 61 | </para>\r |
| 62 | <para>\r |
| 63 | <parameter>label</parameter> is the address of a string that will be used to label the object.\r |
| 64 | <parameter>length</parameter> contains the number of characters in <parameter>label</parameter>.\r |
| 65 | If <parameter>length</parameter> is negative, it is implied that\r |
| 66 | <parameter>label</parameter> contains a null-terminated string. If <parameter>label</parameter>\r |
| 67 | is NULL, any debug label is effectively removed from the object.\r |
| 68 | </para>\r |
| 69 | </refsect1>\r |
| 70 | <refsect1 id="errors"><title>Errors</title>\r |
| 71 | <para>\r |
| 72 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>ptr</parameter> is not\r |
| 73 | a valid sync object.\r |
| 74 | </para>\r |
| 75 | <para>\r |
| 76 | <constant>GL_INVALID_VALUE</constant> is generated if the number of characters in\r |
| 77 | <parameter>label</parameter>, excluding the null terminator when <parameter>length</parameter>\r |
| 78 | is negative, is greater than the value of <constant>GL_MAX_LABEL_LENGTH</constant>.\r |
| 79 | </para>\r |
| 80 | </refsect1>\r |
| 81 | <refsect1 id="associatedgets"><title>Associated Gets</title>\r |
| 82 | <para>\r |
| 83 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_LABEL_LENGTH</constant>.\r |
| 84 | </para>\r |
| 85 | </refsect1>\r |
| 86 | <refsect1 id="seealso"><title>See Also</title>\r |
| 87 | <para>\r |
| 88 | <citerefentry><refentrytitle>glPushDebugGroup</refentrytitle></citerefentry>,\r |
| 89 | <citerefentry><refentrytitle>glPopDebugGroup</refentrytitle></citerefentry>,\r |
| 90 | <citerefentry><refentrytitle>glObjectLabel</refentrytitle></citerefentry>.\r |
| 91 | </para>\r |
| 92 | </refsect1>\r |
| 93 | <refsect1 id="Copyright"><title>Copyright</title>\r |
| 94 | <para>\r |
| 95 | Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r |
| 96 | This material may be distributed subject to the terms and conditions set forth in \r |
| 97 | the Open Publication License, v 1.0, 8 June 1999.\r |
| 98 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r |
| 99 | </para>\r |
| 100 | </refsect1>\r |
| 101 | </refentry>\r |