[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
OpenGL 1.2 for AIX: Reference Manual

glXQueryExtension Subroutine

Purpose

Indicates whether the GLX extension is supported.

Library

OpenGL C bindings library: libGL.a

C Syntax

Bool glXQueryExtension(Display *dpy
                       int *ErrorBase
                       int *EventBase)

Description

The glXQueryExtension subroutine returns True if the X server of connection dpy supports the GLX extension. Otherwise, the subroutine returns False. If True is returned, the ErrorBase and EventBase parameters also return the error base and event base of the GLX extension, respectively. If the glXQueryExtension subroutine returns False, ErrorBase and EventBase are unchanged.

ErrorBase and EventBase do not return values if they are specified as Null.

Notes

EventBase is included for future extensions. GLX does not currently define any events.

Parameters

dpy Specifies the connection to the X server.
ErrorBase Returns the base error code of the GLX server extension.
EventBase Returns the base event code of the GLX server extension.

Return Values

True Returned if the X server of connection dpy supports the GLX extension.
False Returned if the X server of connection dpy does not support the GLX extension.

Files

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

Related Information

The glXQueryVersion subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]