[ Previous | Next | Contents | Glossary | Home | Search ]
OpenGL 1.1 for AIX: Reference Manual

glXWaitX Subroutine


Completes X processing prior to subsequent OpenGL calls.


OpenGL C bindings library: libGL.a

C Syntax

void glXWaitX( void )


The glXWaitX subroutine ensures that X processing is complete before any subsequent OpenGL rendering calls are processed. Any X rendering calls made prior to the glXWaitX subroutine are completed before any OpenGL rendering calls made after glXWaitX. Although this same result can be achieved using XSync, the glXWaitX subroutine does not require a round-trip to the server. Therefore, glXWaitX is more efficient in cases where the client and server are on separate machines.

The glXWaitX subroutine is ignored if there is no current GLX context.


Using the glXWaitX subroutine may or may not flush the OpenGL stream.

Error Codes

GLXBadCurrentWindow Is generated if the drawable associated with the current context of the calling thread is a window, and that window is no longer valid.


/usr/include/GL/gl.h Contains C language constants, variable type definitions, and ANSI function prototypes for OpenGL.

Related Information

The glFinish subroutine, glFlush subroutine, glXWaitGL subroutine.

The XSync subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.

[ Previous | Next | Contents | Glossary | Home | Search ]