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

GLEWSingleton Class Reference

A singleton class that provides a uniform access point for GLEW functionality and makes sure that GLEW is initialized before it is used. More...

#include <glew_singleton.H>

List of all members.

Public Member Functions

bool is_initialized ()
 Has GLEW been initialized successfully.
bool is_supported (const char *extension_names)
 Are all the extensions listed in extension_names supported?

Static Public Member Functions

static GLEWSingletonInstance ()

Private Member Functions

 GLEWSingleton ()
 GLEWSingleton (const GLEWSingleton &)
 ~GLEWSingleton ()
GLEWSingletonoperator= (const GLEWSingleton &)

Private Attributes

bool initialized


Detailed Description

A singleton class that provides a uniform access point for GLEW functionality and makes sure that GLEW is initialized before it is used.

Definition at line 17 of file glew_singleton.H.


Constructor & Destructor Documentation

GLEWSingleton::GLEWSingleton  )  [private]
 

Definition at line 16 of file glew_singleton.C.

References GLEW_OK, glewGetErrorString(), glewInit(), and initialized.

GLEWSingleton::GLEWSingleton const GLEWSingleton  )  [private]
 

GLEWSingleton::~GLEWSingleton  )  [private]
 

Definition at line 37 of file glew_singleton.C.


Member Function Documentation

GLEWSingleton & GLEWSingleton::Instance  )  [inline, static]
 

Definition at line 43 of file glew_singleton.H.

Referenced by GLExtensions::is_extension_supported().

bool GLEWSingleton::is_initialized  )  [inline]
 

Has GLEW been initialized successfully.

Definition at line 24 of file glew_singleton.H.

References initialized.

bool GLEWSingleton::is_supported const char *  extension_names  ) 
 

Are all the extensions listed in extension_names supported?

Definition at line 45 of file glew_singleton.C.

References glewIsSupported(), and initialized.

Referenced by GLExtensions::is_extension_supported().

GLEWSingleton& GLEWSingleton::operator= const GLEWSingleton  )  [private]
 


Member Data Documentation

bool GLEWSingleton::initialized [private]
 

Definition at line 31 of file glew_singleton.H.

Referenced by GLEWSingleton(), is_initialized(), and is_supported().


The documentation for this class was generated from the following files:
Generated on Mon Sep 18 11:45:35 2006 for jot by  doxygen 1.4.4