VTK
Classes | Macros
vtkOpenGLFramebufferObject.h File Reference
#include "vtkFrameBufferObjectBase.h"
#include "vtkRenderingOpenGL2Module.h"
#include "vtkWeakPointer.h"
#include <vector>
#include <map>
Include dependency graph for vtkOpenGLFramebufferObject.h:

Go to the source code of this file.

Classes

class  vtkOpenGLFramebufferObject
 Internal class which encapsulates OpenGL FramebufferObject. More...
 

Macros

#define vtkCheckFrameBufferStatusMacroImpl(macro, mode)
 A variant of vtkErrorMacro that is used to verify framebuffer object completeness. More...
 
#define vtkCheckFrameBufferStatusMacro(mode)   vtkCheckFrameBufferStatusMacroImpl(vtkErrorMacro, mode)
 
#define vtkStaticCheckFrameBufferStatusMacro(mode)   vtkCheckFrameBufferStatusMacroImpl(vtkGenericWarningMacro, mode)
 

Macro Definition Documentation

#define vtkCheckFrameBufferStatusMacroImpl (   macro,
  mode 
)
Value:
{ \
const char *eStr; \
if (!ok) \
{ \
macro( \
<< "OpenGL ERROR. The FBO is incomplete : " << eStr); \
} \
}
static bool GetFrameBufferStatus(unsigned int mode, const char *&desc)
Validate the current FBO configuration (attachments, formats, etc) return false if the FBO is incompl...

A variant of vtkErrorMacro that is used to verify framebuffer object completeness.

It's provided so that reporting may include the file and line number of the offending code. In release mode the macro does nothing.

Definition at line 148 of file vtkOpenGLFramebufferObject.h.

#define vtkCheckFrameBufferStatusMacro (   mode)    vtkCheckFrameBufferStatusMacroImpl(vtkErrorMacro, mode)

Definition at line 158 of file vtkOpenGLFramebufferObject.h.

#define vtkStaticCheckFrameBufferStatusMacro (   mode)    vtkCheckFrameBufferStatusMacroImpl(vtkGenericWarningMacro, mode)

Definition at line 160 of file vtkOpenGLFramebufferObject.h.