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

glXIsDirect Subroutine


Indicates whether direct rendering is enabled.


OpenGL C bindings library: libGL.a

C Syntax

Bool glXIsDirect(Display *dpy
      GLXContext Context)


The glXIsDirect subroutine returns a value of True if the Context parameter supplied is a direct rendering context. Otherwise, False is returned. Direct rendering contexts bypass the X server and pass rendering commands directly from the address space of the calling process to the rendering system. Nondirect rendering contexts pass all rendering commands to the X server.


dpy Specifies the connection to the X server.
Context Specifies the GLX context being queried.

Return Values

True Returned if Context is a direct rendering context.
False Returned if Context is not a direct rendering context.

Error Codes

GLXBadContext Context is not a valid GLX context.


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

Suggested Reading

The glXCreateContext subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.

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