#include <iso_gl.h>
Collaboration diagram for iso::gl::GL:
Public Member Functions | ||||
void | version (int &pMajor, int &pMinor) throw (GLException) | |||
obtain OpenGL version | ||||
void | clearError () | |||
void | error () throw (GLException) | |||
check for open gl errors
| ||||
base::String | errorToString (GLenum pError) | |||
convert error number to string | ||||
Static Public Member Functions | ||||
static GL & | get () | |||
return singleton instance | ||||
static void | destroy () | |||
destroy singleton instance | ||||
Protected Member Functions | ||||
GL () | ||||
singleton instance | ||||
~GL () | ||||
destructor | ||||
Static Protected Attributes | ||||
static GL * | sGL |
GL::GL | ( | ) | [protected] |
singleton instance
/brief default constructor
GL::~GL | ( | ) | [protected] |
destructor
GL & GL::get | ( | ) | [static] |
return singleton instance
void GL::destroy | ( | ) | [static] |
destroy singleton instance
void GL::version | ( | int & | pMajor, | |
int & | pMinor | |||
) | throw (GLException) |
obtain OpenGL version
pMajor | major version number | |
pMinor | minor version number |
void GL::clearError | ( | ) |
void GL::error | ( | ) | throw (GLException) |
check for open gl errors
throws | an exception if there has been an gl error, none otherwise |
base::String GL::errorToString | ( | GLenum | pError | ) |
convert error number to string
pError | error number |