VTK
Defines | Functions
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Volumes/BIGMAC1/Dashboards/MyTests/VTK_BLD_Release_docs/Rendering/OpenGL/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.

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 Documentation

Definition at line 23 of file vtkOpenGLError.h.

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                                      \
    = 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.

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.