|
VTK
|
#include "vtkgl.h"#include "vtkSetGet.h"#include <sstream>
Go to the source code of this file.
Defines | |
| #define | VTK_REPORT_OPENGL_ERRORS |
| #define | vtkOpenGLClearErrorMacro() vtkClearOpenGLErrors(16); |
| #define | vtkOpenGLCheckErrorMacroImpl(ostr, message) |
| #define | vtkOpenGLCheckErrorMacro(message) vtkOpenGLCheckErrorMacroImpl(vtkErrorMacro, message) |
| #define | vtkOpenGLStaticCheckErrorMacro(message) vtkOpenGLCheckErrorMacroImpl(vtkGenericWarningMacro, message) |
| #define | vtkOpenGLDebugClearErrorMacro() vtkOpenGLClearErrorMacro() |
| #define | vtkOpenGLDebugCheckErrorMacro(message) vtkOpenGLStaticCheckErrorMacro(message) |
Functions | |
| const char * | vtkOpenGLStrError (unsigned int code) |
| int | vtkGetOpenGLErrors (int maxNum, unsigned int *errCode, const char **errDesc) |
| void | vtkPrintOpenGLErrors (ostream &os, int maxErrors, int numErrors, unsigned int *errCode, const char **errDesc) |
| void | vtkClearOpenGLErrors (const unsigned int maxErrors=16) |
| #define VTK_REPORT_OPENGL_ERRORS |
Definition at line 23 of file vtkOpenGLError.h.
| #define vtkOpenGLClearErrorMacro | ( | ) | vtkClearOpenGLErrors(16); |
Definition at line 215 of file vtkOpenGLError.h.
| #define vtkOpenGLCheckErrorMacroImpl | ( | ostr, | |
| message | |||
| ) |
{ \
const int maxErrors = 16; \
unsigned int errCode[maxErrors] = {0}; \
const char *errDesc[maxErrors] = {NULL}; \
\
int numErrors \
= vtkGetOpenGLErrors( \
maxErrors, \
errCode, \
errDesc); \
\
if (numErrors) \
{ \
std::ostringstream oss; \
vtkPrintOpenGLErrors( \
oss, \
maxErrors, \
numErrors, \
errCode, \
errDesc); \
\
ostr(<< message << " " << oss.str().c_str()); \
} \
}
Definition at line 217 of file vtkOpenGLError.h.
| #define vtkOpenGLCheckErrorMacro | ( | message | ) | vtkOpenGLCheckErrorMacroImpl(vtkErrorMacro, message) |
Definition at line 242 of file vtkOpenGLError.h.
| #define vtkOpenGLStaticCheckErrorMacro | ( | message | ) | vtkOpenGLCheckErrorMacroImpl(vtkGenericWarningMacro, message) |
Definition at line 244 of file vtkOpenGLError.h.
| #define vtkOpenGLDebugClearErrorMacro | ( | ) | vtkOpenGLClearErrorMacro() |
Definition at line 254 of file vtkOpenGLError.h.
| #define vtkOpenGLDebugCheckErrorMacro | ( | message | ) | vtkOpenGLStaticCheckErrorMacro(message) |
Definition at line 256 of file vtkOpenGLError.h.
| const char* vtkOpenGLStrError | ( | unsigned int | code | ) | [inline] |
Definition at line 68 of file vtkOpenGLError.h.
| int vtkGetOpenGLErrors | ( | int | maxNum, |
| unsigned int * | errCode, | ||
| const char ** | errDesc | ||
| ) | [inline] |
Definition at line 105 of file vtkOpenGLError.h.
| void vtkPrintOpenGLErrors | ( | ostream & | os, |
| int | maxErrors, | ||
| int | numErrors, | ||
| unsigned int * | errCode, | ||
| const char ** | errDesc | ||
| ) | [inline] |
Definition at line 150 of file vtkOpenGLError.h.
| void vtkClearOpenGLErrors | ( | const unsigned int | maxErrors = 16 | ) | [inline] |
Definition at line 191 of file vtkOpenGLError.h.
1.8.0