OpenGLUT Documentation
Introduction | Documentation | Examples | Proposals | Authors | Copying | Todo | Bugs | Links

OpenGL Utilities
[OpenGLUT API Reference]


Functions

int glutExtensionSupported (const char *extension)
void glutReportErrors (void)

Function Documentation

int glutExtensionSupported const char *  extension  ) 
 

Determine if an OpenGL extension is available.

Parameters:
extension A string-name of an extension.
Returns 0 if OpenGLUT cannot determine that the requested extension is definitely present. Only checks extensions from glGetString().

Todo:
Wouldn't this be simpler and clearer if we used strtok()?

Consider an ogWarning() if there is no current rendering context.

This is an ugly bit of code with 3 return statements, one of which is never reached.

See also:
glGetString()

void glutReportErrors void   ) 
 

Reports all available OpenGL errors.

Displays as an OpenGLUT warning every OpenGL error that OpenGL remembers giving to us and which we have not processed. Uses gluErrorString().

This is forcibly done by OpenGLUT periodically if -gldebug is one of the strings passed into glutInit() via argv.

See also:
gluErrorString(), glutInit()




OpenGLUT Development @ Sourceforge
Homepage | Summary | Files | CVS | Forums | Lists | Bugs | RFE

Generated on Sat Feb 5 01:47:29 2005 for OpenGLUT by doxygen 1.3.9.1
The OpenGLUT project is hosted by sourceforge.net.