OpenGLEAN
OpenGLEAN User Support
Home page | Introduction | Documentation | Files | Examples | Proposals | Authors | Links


OpenGLEAN Development
Summary | CVS | (discussion via home page) | (contact via home page) | (suggestion box) | License | Todo | Bugs

OpenGL Utilities
[OpenGLEAN API Reference]

Collaboration diagram for OpenGL Utilities:


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 OpenGLEAN cannot determine that the requested extension is definitely present. Only checks extensions from glGetString().

It is presently a fatal error to call this function without properly initializing OpenGLEAN via glutInit(). If you have no current window, or if extenstion contains an ASCII SPACE character, or if extension cannot be found in glGetString(GL_EXTENSIONS), then 0 is returned.

Else returns 1.

It is a bit inconsistent that we quietly fail if there is no current window, but blow up with an error message if OpenGLEAN is not properly initialized.

See also:
glGetString()
Todo:
Consider an ogWarning() if there is no current rendering context.

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

void glutReportErrors void   ) 
 

Reports all available OpenGL errors.

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

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

Note:
On some systems, this can be conditionally compiled to explicitly open GLU as a dynamic library. There are advantages and disadvantages to this. Currently, resolving GLU is automatic. Currently, if the manual resolution is used, the GLU library is searched for without any special path or version information.
See also:
gluErrorString(), glutInit()




SourceForge.net Logo Supported in part by SourceForge.net.

Generated on Fri Sep 16 20:15:37 2005 for OpenGLEAN by doxygen 1.4.3
The OpenGLEAN project is hosted by olib.org and SourceForge.