VTK
Macros | Functions
vtkOpenGLError.h File Reference
#include "vtkgl.h"
#include "vtkSetGet.h"
#include <sstream>
Include dependency graph for vtkOpenGLError.h:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

#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 
)
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; \
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.

#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.

Function Documentation

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.