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=
"glXWaitX">
9 <holder>Silicon Graphics, Inc.
</holder>
12 <refentrytitle>glXWaitX
</refentrytitle>
13 <manvolnum>3G
</manvolnum>
16 <refname>glXWaitX
</refname>
17 <refpurpose>complete X execution prior to subsequent GL calls
</refpurpose>
19 <refsynopsisdiv><title>C Specification
</title>
22 <funcdef>void
<function>glXWaitX
</function></funcdef>
23 <paramdef><parameter>void
</parameter></paramdef>
27 <!-- eqn: ignoring delim $$ -->
28 <refsect1 id=
"description"><title>Description
</title>
30 X rendering calls made prior to
<function>glXWaitX
</function> are guaranteed to be
31 executed before GL rendering calls made after
<function>glXWaitX
</function>.
32 Although the same result can be achieved using
<function>XSync
</function>,
33 <function>glXWaitX
</function> does not require a round trip to the server,
34 and it is therefore more efficient in cases where client and server
35 are on separate machines.
38 <function>glXWaitX
</function> is ignored if there is no current GLX context.
41 <refsect1 id=
"notes"><title>Notes
</title>
43 <function>glXWaitX
</function> may or may not flush the GL stream.
46 <refsect1 id=
"errors"><title>Errors
</title>
48 <constant>GLXBadCurrentWindow
</constant> is generated if the drawable associated
49 with the current context of the calling thread is a window, and that
50 window is no longer valid.
53 <refsect1 id=
"seealso"><title>See Also
</title>
55 <citerefentry><refentrytitle>glFinish
</refentrytitle></citerefentry>,
56 <citerefentry><refentrytitle>glFlush
</refentrytitle></citerefentry>,
57 <citerefentry><refentrytitle>glXWaitGL
</refentrytitle></citerefentry>,
58 <function>XSync
</function>
61 <refsect1 id=
"Copyright"><title>Copyright
</title>
63 Copyright
<trademark class=
"copyright"></trademark> 1991-
2006
64 Silicon Graphics, Inc. This document is licensed under the SGI
65 Free Software B License. For details, see
66 <ulink url=
"http://oss.sgi.com/projects/FreeB/">http://oss.sgi.com/projects/FreeB/
</ulink>.