Commit | Line | Data |
---|---|---|
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="glGetObjectPtrLabel">\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>glGetObjectPtrLabel</refentrytitle>\r | |
13 | <manvolnum>3G</manvolnum>\r | |
14 | </refmeta>\r | |
15 | <refnamediv>\r | |
16 | <refname>glGetObjectPtrLabel</refname>\r | |
17 | <refpurpose>retrieve the label of 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>glGetObjectPtrLabel</function></funcdef>\r | |
23 | <paramdef>void * <parameter>ptr</parameter></paramdef>\r | |
24 | <paramdef>GLsizei <parameter>bifSize</parameter></paramdef>\r | |
25 | <paramdef>GLsizei * <parameter>length</parameter></paramdef>\r | |
26 | <paramdef>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>ptr</parameter></term>\r | |
34 | <listitem>\r | |
35 | <para>\r | |
36 | The name of the sync object whose label to retrieve.\r | |
37 | </para>\r | |
38 | </listitem>\r | |
39 | </varlistentry>\r | |
40 | <varlistentry>\r | |
41 | <term><parameter>bufSize</parameter></term>\r | |
42 | <listitem>\r | |
43 | <para>\r | |
44 | The length of the buffer whose address is in <parameter>label</parameter>.\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 address of a variable to receive the length of the object label.\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 that will receive the object label.\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>glGetObjectPtrLabel</function> retrieves the label of the sync object identified by\r | |
69 | <parameter>ptr</parameter>.\r | |
70 | </para>\r | |
71 | <para>\r | |
72 | <parameter>label</parameter> is the address of a string that will be used to store the object label.\r | |
73 | <parameter>bufSize</parameter> specifies the number of characters in the array identified by <parameter>label</parameter>.\r | |
74 | <parameter>length</parameter> contains the address of a variable which will receive the the number of characters in the object label.\r | |
75 | If <parameter>length</parameter> is NULL, then it is ignored and no data is written. Likewise, if <parameter>label</parameter>\r | |
76 | is NULL, or if <parameter>bufSize</parameter> is zero then no data is written to <parameter>label</parameter>.\r | |
77 | </para>\r | |
78 | </refsect1>\r | |
79 | <refsect1 id="errors"><title>Errors</title>\r | |
80 | <para>\r | |
81 | <constant>GL_INVALID_ENUM</constant> is generated if <parameter>identifier</parameter>\r | |
82 | is not one of the accepted object types.\r | |
83 | </para>\r | |
84 | <para>\r | |
85 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>ptr</parameter>\r | |
86 | is not the name of an existing sync object.\r | |
87 | </para>\r | |
88 | <para>\r | |
89 | <constant>GL_INVALID_VALUE</constant> is generated if <parameter>bufSize</parameter> is\r | |
90 | zero.\r | |
91 | </para>\r | |
92 | <para>\r | |
93 | If not NULL, <parameter>length</parameter> and <parameter>label</parameter> should be addresses\r | |
94 | to which the client has write access, otherwise undefined behavior, including process termination\r | |
95 | may occur.\r | |
96 | </para>\r | |
97 | </refsect1>\r | |
98 | <refsect1 id="associatedgets"><title>Associated Gets</title>\r | |
99 | <para>\r | |
100 | <citerefentry><refentrytitle>glGet</refentrytitle></citerefentry> with argument <constant>GL_MAX_LABEL_LENGTH</constant>.\r | |
101 | </para>\r | |
102 | </refsect1>\r | |
103 | <refsect1 id="seealso"><title>See Also</title>\r | |
104 | <para>\r | |
105 | <citerefentry><refentrytitle>glPushDebugGroup</refentrytitle></citerefentry>,\r | |
106 | <citerefentry><refentrytitle>glPopDebugGroup</refentrytitle></citerefentry>,\r | |
107 | <citerefentry><refentrytitle>glObjectLabel</refentrytitle></citerefentry>,\r | |
108 | <citerefentry><refentrytitle>glGetObjectLabel</refentrytitle></citerefentry>.\r | |
109 | </para>\r | |
110 | </refsect1>\r | |
111 | <refsect1 id="Copyright"><title>Copyright</title>\r | |
112 | <para>\r | |
113 | Copyright <trademark class="copyright"></trademark> 2012 Khronos Group. \r | |
114 | This material may be distributed subject to the terms and conditions set forth in \r | |
115 | the Open Publication License, v 1.0, 8 June 1999.\r | |
116 | <ulink url="http://opencontent.org/openpub/">http://opencontent.org/openpub/</ulink>.\r | |
117 | </para>\r | |
118 | </refsect1>\r | |
119 | </refentry>\r |