GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
glutExtensionSupported(3GLUT) GLUT glutExtensionSupported(3GLUT)

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

int glutExtensionSupported(char *extension);

extension
Name of OpenGL extension.

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.

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).

glutGet, glGetString

Mark J. Kilgard (mjk@nvidia.com)
3.7 GLUT

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.