Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

nvgl::GLFunctions Class Reference

The GLFunctions class holds the OpenGL extension function pointers. More...

#include <GLFunctions.h>

List of all members.

Public Methods

 ~GLFunctions (void)
 Constructor Destructor. More...

bool isAvailable (const std::string &extension) const
 Test if a given extension is available on the current context. More...

bool isExported (const std::string &extension) const
 Test if a given extension is exported on the current context. More...


Detailed Description

The GLFunctions class holds the OpenGL extension function pointers.

For every OpenGL context (HGLRC) there might exist a different set of extension functions. A GLFunctions holds all function pointers of one context. If you're using the uppercase WGL prefix-functions WGLCreateContext, WGLMakeCurrent, and WGLDeleteContext (see GLCache), one GLFunctions object is maintained per OpenGL context and switched accordingly.


Constructor & Destructor Documentation

nvgl::GLFunctions::~GLFunctions void   
 

Constructor Destructor.


Member Function Documentation

bool nvgl::GLFunctions::isAvailable const std::string &    extension const [inline]
 

Test if a given extension is available on the current context.

Note:
Not all exported extensions might be available.
Returns:
true, if all functions of extension are available, otherwise false

bool nvgl::GLFunctions::isExported const std::string &    extension const [inline]
 

Test if a given extension is exported on the current context.

Note:
Not all exported extensions might be available.
Returns:
true, if extension is exported, otherwise c\ false


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:21 2005 for NVSGSDK by NVIDIA