Query: glutextensionsupported
OS: redhat
Section: 3glut
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
glutExtensionSupported(3GLUT) GLUT glutExtensionSupported(3GLUT)NAMEglutExtensionSupported - helps to easily determine whether a given OpenGL extension is supported.SYNTAXint glutExtensionSupported(char *extension);ARGUMENTSextension Name of OpenGL extension.DESCRIPTIONglutExtensionSupported 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.EXAMPLEHere is an example of using glutExtensionSupported: if (!glutExtensionSupported("GL_EXT_texture")) { fprintf(stderr, "Missing the texture extension! "); exit(1); } Notice that the name argument includes both the GL prefix and the extension family prefix (EXT).SEE ALSOglutGet, glGetStringAUTHORMark J. Kilgard (mjk@nvidia.com)GLUT3.7 glutExtensionSupported(3GLUT)
Related Man Pages |
---|
glutinitdisplaymode(3glut) - mojave |
glutextensionsupported(3glut) - suse |
glutget(3glut) - suse |
glutcreatewindow(3glut) - osx |
glutextensionsupported(3glut) - osx |
Similar Topics in the Unix Linux Community |
---|
How to change extension? |
Checking file existance by extension |
changing filename extension |
Help on extracting file with zipx extension |
Adding the data before file extension |