next up previous contents index
Next: 10 Font Rendering Up: 9 State Retrieval Previous: 9.4 glutGetModifiers

9.5 glutExtensionSupported

  glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported.

Usage

int glutExtensionSupported(char *extension);
extension
Name of OpenGL extension.

Description

glutExtensionSupported helps to easily determine whether a given OpenGL extension is supported or not. The extension parameter names the extension to query. The supported extensions can also be determined with glGetString(GL_EXTENSIONS), but glutExtensionSupported does the correct parsing of the returned string.

glutExtensionSupported returns non-zero if the extension is supported, zero if not supported.

There must be a valid current window to call glutExtensionSupported.

glutExtensionSupported only returns information about OpenGL extensions only. This means window system dependent extensions (for example, GLX extensions) are not reported by glutExtensionSupported.



next up previous contents index
Next: 10 Font Rendering Up: 9 State Retrieval Previous: 9.4 glutGetModifiers



Mark Kilgard
Fri Feb 23 08:05:02 PST 1996