This manual page is for Mac OS X version 10.6

If you are running a different version of Mac OS X, view the documentation locally:

  • In Terminal, using the man(1) command

Reading manual pages

Manual pages are intended as a quick reference for people who already understand a technology.

  • For more information about the manual page format, see the manual page for manpages(5).

  • For more information about this technology, look for other documentation in the Apple Reference Library.

  • For general information about writing shell scripts, read Shell Scripting Primer.



glutExtensionSupported(3GLUT)                       GLUT                       glutExtensionSupported(3GLUT)



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

SYNTAX
       int glutExtensionSupported(char *extension);

ARGUMENTS
       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  sys-tem system
       tem 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(3G), glGetString(3G)


AUTHOR
       Mark J. Kilgard ([email protected])



GLUT                                                 3.7                       glutExtensionSupported(3GLUT)

Reporting Problems

The way to report a problem with this manual page depends on the type of problem:

Content errors
Report errors in the content of this documentation with the feedback links below.
Bug reports
Report bugs in the functionality of the described tool or API through Bug Reporter.
Formatting problems
Report formatting mistakes in the online version of these pages with the feedback links below.