#include "vtkgl.h"
#include "vtkSetGet.h"
#include <sstream>
Go to the source code of this file.
#define VTK_REPORT_OPENGL_ERRORS |
#define vtkOpenGLCheckErrorMacroImpl |
( |
|
ostr, |
|
|
|
message |
|
) |
| |
Value:{ \
const int maxErrors = 16; \
unsigned int errCode[maxErrors] = {0}; \
const char *errDesc[maxErrors] = {NULL}; \
maxErrors, \
errCode, \
errDesc); \
\
if (numErrors) \
{ \
std::ostringstream oss;
\
oss, \
maxErrors, \
numErrors, \
errCode, \
errDesc); \
\
ostr(<< message << " " << oss.str().c_str()); \
} \
}
int vtkGetOpenGLErrors(int maxNum, unsigned int *errCode, const char **errDesc)
void vtkPrintOpenGLErrors(ostream &os, int maxErrors, int numErrors, unsigned int *errCode, const char **errDesc)
Definition at line 217 of file vtkOpenGLError.h.
const char* vtkOpenGLStrError |
( |
unsigned int |
code | ) |
|
|
inline |
int vtkGetOpenGLErrors |
( |
int |
maxNum, |
|
|
unsigned int * |
errCode, |
|
|
const char ** |
errDesc |
|
) |
| |
|
inline |
void vtkPrintOpenGLErrors |
( |
ostream & |
os, |
|
|
int |
maxErrors, |
|
|
int |
numErrors, |
|
|
unsigned int * |
errCode, |
|
|
const char ** |
errDesc |
|
) |
| |
|
inline |
void vtkClearOpenGLErrors |
( |
const unsigned int |
maxErrors = 16 | ) |
|
|
inline |