Go to the documentation of this file.
28 #ifndef vtkFrameBufferObject_h
29 #define vtkFrameBufferObject_h
91 this->SetActiveBuffers(1, &
index);
113 unsigned int zslice=0);
193 bool shaderSupportsTextureInt);
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
void SetActiveBuffers(int numbuffers, unsigned int indices[])
std::vector< unsigned int > ActiveBuffers
void DestroyColorBuffers()
#define vtkGetVector2Macro(name, type)
void DisplayBuffer(int value)
static bool IsSupported(vtkRenderWindow *renWin)
void CreateDepthBuffer(int width, int height, unsigned int mode)
int CheckFrameBufferStatus(unsigned int mode)
void SetActiveBuffer(unsigned int index)
#define vtkTypeMacro(thisClass, superclass)
abstract base class for most VTK objects
void RenderQuad(int minX, int maxX, int minY, int maxY)
void RemoveColorBuffer(unsigned int index)
void SetContext(vtkRenderWindow *context)
std::vector< vtkSmartPointer< vtkTextureObject > > ColorBuffers
void PrintSelf(ostream &os, vtkIndent indent)
static bool LoadRequiredExtensions(vtkRenderWindow *renWin)
bool StartNonOrtho(int width, int height, bool shaderSupportsTextureInt)
unsigned int NumberOfRenderTargets
Interface class for querying and using OpenGL extensions.
vtkWeakPointer< vtkRenderWindow > Context
void DisplayFrameBufferAttachment(unsigned int uattachment)
GLsizei const GLfloat * value
bool Start(int width, int height, bool shaderSupportsTextureInt)
vtkSmartPointer< vtkTextureObject > UserDepthBuffer
std::vector< unsigned int > UserZSlices
void DisplayFrameBufferAttachments()
vtkRenderWindow * GetContext()
a simple class to control print indentation
abstracts an OpenGL texture object.
void SetColorBuffer(unsigned int index, vtkTextureObject *texture, unsigned int zslice=0)
void DestroyDepthBuffer()
GLuint GLuint GLsizei GLenum const GLvoid * indices
std::vector< vtkSmartPointer< vtkTextureObject > > UserColorBuffers
#define vtkGetMacro(name, type)
unsigned int GetMaximumNumberOfRenderTargets()
vtkTextureObject * GetColorBuffer(unsigned int index)
void RemoveAllColorBuffers()
void DisplayDrawBuffers()
unsigned int GetMaximumNumberOfActiveTargets()
GLint GLint GLsizei width
vtkSetMacro(IgnoreDriverBugs, bool)
void SetNumberOfRenderTargets(unsigned int)
static vtkFrameBufferObject * New()
void SetDepthBuffer(vtkTextureObject *depthTexture)
void CreateColorBuffers(int width, int height, unsigned int mode, bool shaderSupportsTextureInt)
create a window for renderers to draw into
abstracts an OpenGL pixel buffer object.
#define VTKRENDERINGOPENGL_EXPORT
GLint GLint GLsizei GLsizei height