25 #ifndef __vtkFrameBufferObject_h
26 #define __vtkFrameBufferObject_h
32 #include <vtkstd/vector>
64 bool shaderSupportsTextureInt);
65 bool StartNonOrtho(
int width,
67 bool shaderSupportsTextureInt);
76 void RenderQuad(
int minX,
94 this->SetActiveBuffers(1, &index);
101 void SetActiveBuffers(
int numbuffers,
102 unsigned int indices[]);
111 void SetColorBuffer(
unsigned int index,
113 unsigned int zslice=0);
116 void RemoveColorBuffer(
unsigned int index);
117 void RemoveAllColorBuffers();
122 void RemoveDepthBuffer();
128 vtkSetMacro(DepthBufferNeeded,
bool);
129 vtkGetMacro(DepthBufferNeeded,
bool);
134 void SetNumberOfRenderTargets(
unsigned int);
135 vtkGetMacro(NumberOfRenderTargets,
unsigned int);
141 unsigned int GetMaximumNumberOfActiveTargets();
146 unsigned int GetMaximumNumberOfRenderTargets();
150 vtkGetVector2Macro(LastSize,
int);
159 void CheckFrameBufferStatus();
162 void DisplayFrameBufferAttachments();
165 void DisplayFrameBufferAttachment(
unsigned int uattachment);
168 void DisplayDrawBuffers();
171 void DisplayReadBuffer();
174 void DisplayBuffer(
int value);
194 void Create(
int width,
196 void CreateBuffers(
int width,
198 void CreateColorBuffers(
int width,
200 bool shaderSupportsTextureInt);
202 void DestroyBuffers();
203 void DestroyColorBuffers();
204 void ActivateBuffers();
abstract base class for most VTK objects
unsigned int NumberOfRenderTargets
void SetActiveBuffer(unsigned int index)
vtkWeakPointer< vtkRenderWindow > Context
virtual void PrintSelf(ostream &os, vtkIndent indent)
a simple class to control print indentation
vtkSmartPointer< vtkTextureObject > UserDepthBuffer
vtkstd::vector< unsigned int > ActiveBuffers
Interface class for querying and using OpenGL extensions.
vtkstd::vector< unsigned int > UserZSlices
vtkstd::vector< vtkSmartPointer< vtkTextureObject > > UserColorBuffers
internal class which encapsulates OpenGL frame buffer object. Not to be used directly.
abstracts an OpenGL texture object.
create a window for renderers to draw into
vtkstd::vector< vtkSmartPointer< vtkTextureObject > > ColorBuffers