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