| 
    VTK
   
    
   
   | 
  
  
  
 

Go to the source code of this file.
Defines | |
| #define | VTK_REPORT_OPENGL_ERRORS | 
| #define | vtkOpenGLClearErrorMacro() vtkClearOpenGLErrors(); | 
| #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 () | 
| #define VTK_REPORT_OPENGL_ERRORS | 
Definition at line 21 of file vtkOpenGLError.h.
| #define vtkOpenGLClearErrorMacro | ( | ) | vtkClearOpenGLErrors(); | 
Definition at line 206 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 208 of file vtkOpenGLError.h.
| #define vtkOpenGLCheckErrorMacro | ( | message | ) | vtkOpenGLCheckErrorMacroImpl(vtkErrorMacro, message) | 
Definition at line 233 of file vtkOpenGLError.h.
| #define vtkOpenGLStaticCheckErrorMacro | ( | message | ) | vtkOpenGLCheckErrorMacroImpl(vtkGenericWarningMacro, message) | 
Definition at line 235 of file vtkOpenGLError.h.
| #define vtkOpenGLDebugClearErrorMacro | ( | ) | vtkOpenGLClearErrorMacro() | 
Definition at line 245 of file vtkOpenGLError.h.
| #define vtkOpenGLDebugCheckErrorMacro | ( | message | ) | vtkOpenGLStaticCheckErrorMacro(message) | 
Definition at line 247 of file vtkOpenGLError.h.
| const char* vtkOpenGLStrError | ( | unsigned int | code | ) |  [inline] | 
        
Definition at line 59 of file vtkOpenGLError.h.
| int vtkGetOpenGLErrors | ( | int | maxNum, | 
| unsigned int * | errCode, | ||
| const char ** | errDesc | ||
| ) |  [inline] | 
        
Definition at line 106 of file vtkOpenGLError.h.
| void vtkPrintOpenGLErrors | ( | ostream & | os, | 
| int | maxErrors, | ||
| int | numErrors, | ||
| unsigned int * | errCode, | ||
| const char ** | errDesc | ||
| ) |  [inline] | 
        
Definition at line 151 of file vtkOpenGLError.h.
| void vtkClearOpenGLErrors | ( | ) |  [inline] | 
        
Definition at line 192 of file vtkOpenGLError.h.
 1.8.0