next up previous
Next: 4 Encoding on the Up: 3.2 Functions Previous: 3.2.7 Access to X

3.2.8 Versioning and GLX 1.1

The following functions are only available in GLX 1.1.

const char *glXQueryExtensionsString ( Display *dpy , int screen ) ;

glXQueryExtensionsString returns a pointer to a string describing which GLX extensions are supported on the connection. The string is zero-terminated and contains a space-seperated list of extension names. The extension names themselves do not contain spaces. If there are no extensions to GLX, then the empty string is returned.

const char *glXGetClientString ( Display *dpy , int name );

glXGetClientString returns a pointer to a static, zero-terminated string describing some aspect of the client library. The possible values for name are GLX _VENDOR, GLX _VERSION, and GLX _EXTENSIONS. If name is not set to one of these values then NULL is returned. The format and contents of the vendor string is implementation dependent, and the format of the extension string is the same as for glXQueryExtensionsString. The version string is laid out as follows:

<major _version.minor _version><space><vendor-specific info>

Both the major and minor portions of the version number are of arbitrary length. The vendor-specific information is optional. However, if it is present, the format and contents are implementation specific.

const char *glXQueryServerString ( Display *dpy , int screen , int name ) ;

glXQueryServerString returns a pointer to a static, zero-terminated string describing some aspect of the server's GLX extension. The possible values for name and the format of the strings is the same as for glXGetClientString. If name is not set to a recognized value then NULL is returned.



Mark Segal
Wed Jan 11 18:38:15 PST 1995