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

glXWaitX Subroutine

Purpose

Completes X processing prior to subsequent OpenGL calls.

Library

OpenGL C bindings library: libGL.a

C Syntax

void glXWaitX( void )

Description

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.

Notes

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.

Files

/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 ]