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

glXQueryVersion Subroutine

Purpose

Returns the version numbers of the GLX extension.

Library

OpenGL C bindings library: libGL.a

C Syntax

Bool glXQueryVersion(Display *dpy
      int *Major
      int *Minor)

Description

The glXQueryVersion subroutine returns the major and minor version numbers of the GLX extension that is implemented by the server associated with the dpy connection. Implementations with the same major version number are upwardly compatible, meaning that the implementation with the higher minor version number is a superset of the version with the lower minor version number.

The Major and Minor parameters do not return values if they are specified as Null.

Parameters

dpy Specifies the connection to the X server.
Major Returns the major version number of the GLX server extension.
Minor Returns the minor version number of the GLX server extension.

Return Values

True Returned if the subroutine is successful.
False Returned if the subroutine fails. If False is returned, Major and Minor parameter values are not updated.

Files

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

Related Information

The glXQueryExtension subroutine.

OpenGL in the AIXwindows (GLX) Environment.

OpenGL Overview.


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