Name

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

Python Specification

glutExtensionSupported
	glutExtensionSupported(name) -> int

C Specification

int glutExtensionSupported(char *extension);

Parameters

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   glGet-
String(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  glutExten-
sionSupported.

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

Example

Here is an example of using glutExtensionSupported:

  if (!glutExtensionSupported("GL_EXT_texture")) {
    fprintf(stderr, "Missing the texture extension!\n");
    exit(1);
  }

Notice that the name argument includes both the GL  prefix
and the extension family prefix (EXT).

See Also

glutGet, glGetString

Author

Mark J. Kilgard (mjk@nvidia.com)

:: Documentation :: References :: GLUT ::
:: Index (n/a) ::