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

OpenGLEAN Utilities
[OpenGLEAN API Reference]

Collaboration diagram for OpenGLEAN Utilities:


Functions

void * glutGetProcAddress (const char *procName)

Detailed Description

Calling a library procedure directly can cause a link-time error if the feature does not exist. OpenGLEAN provides a facility to query whether the feature exists, and provides a function-pointer for the feature, if present.

Function Documentation

void* glutGetProcAddress const char *  procName  ) 
 

Determine if an OpenGLEAN feature or extension is available.

Parameters:
procName Procedure name.
Given a function name, searches for the function (or "procedure", hence "Proc") in internal tables. If the function is found, a pointer to the function is returned. If the function is not found, NULL is returned.

In addition to an internal OpenGLEAN table, this function will also consult glX (on X systems) or wgl (on WIN32 and WINCE), if the OpenGLEAN tables do not have the requested function. It should return any OpenGL, glX, or wgl function if those functions are available.

Note:
The code makes no effort towards efficiency. It is advised that you cache the pointer retrieved from this function if you need a certain function repeatedly.
See also:
glXGetProcAddress(), wglGetProcAddress()




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.