![]() |
Vis 2 Demo
1.0
Technical illustration type real-time rendering of geometry
|
This class provides callback functions for OpenGL errors. More...
Static Public Member Functions | |
| static void APIENTRY | DebugCallback (GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar *message, GLvoid *userParam) |
| The callback definition function. More... | |
| static std::string | FormatDebugOutput (GLenum source, GLenum type, GLuint id, GLenum severity, const char *msg) |
| This function formats the error for output as a string. More... | |
| static void | registerCallBackFunction () |
| Function for registering for synchronous callback. More... | |
This class provides callback functions for OpenGL errors.
This class is used during development for debugging purposes.
Definition at line 13 of file DebugFunctions.h.
|
static |
The callback definition function.
| [in] | source | is the component where the error occured, |
| [in] | type | is the type of behavious that caused the error, |
| [in] | id | is the unique nummber associated with this error, |
| [in] | severity | can be HIGH, MEDIUM, or LOW, |
| [in] | lenght | is the length of the error description, |
| [in] | message | is the specific error message, |
| [in] | userParam | is a function pointer. |
Definition at line 4 of file DebugFunctions.cpp.
|
static |
This function formats the error for output as a string.
| [in] | source | is the component where the error occured, |
| [in] | type | is the type of behavious that caused the error, |
| [in] | id | is the unique nummber associated with this error, |
| [in] | severity | can be HIGH, MEDIUM, or LOW, |
| [in] | message | is the specific error message. |
Definition at line 32 of file DebugFunctions.cpp.
|
static |
Function for registering for synchronous callback.
Definition at line 134 of file DebugFunctions.cpp.
1.8.3.1