29 #ifndef vtkFrameBufferObject_h
30 #define vtkFrameBufferObject_h
33 #include "vtkRenderingOpenGLModule.h"
75 bool Start(
int width,
int height,
bool shaderSupportsTextureInt);
76 bool StartNonOrtho(
int width,
int height,
bool shaderSupportsTextureInt);
89 void RenderQuad(
int minX,
int maxX,
int minY,
int maxY);
107 this->SetActiveBuffers(1, &index);
117 void SetActiveBuffers(
int numbuffers,
unsigned int indices[]);
133 unsigned int zslice=0);
136 void RemoveColorBuffer(
unsigned int index);
137 void RemoveAllColorBuffers();
144 void RemoveDepthBuffer();
153 vtkGetMacro(DepthBufferNeeded,
bool);
164 void SetNumberOfRenderTargets(
unsigned int);
165 vtkGetMacro(NumberOfRenderTargets,
unsigned int);
173 unsigned int GetMaximumNumberOfActiveTargets();
180 unsigned int GetMaximumNumberOfRenderTargets();
186 vtkGetVector2Macro(LastSize,
int);
199 int CheckFrameBufferStatus(
unsigned int mode);
217 void CreateDepthBuffer(
int width,
int height,
unsigned int mode);
223 void CreateColorBuffers(
227 bool shaderSupportsTextureInt);
230 void DestroyDepthBuffer();
231 void DestroyColorBuffers();
234 void ActivateBuffers();
239 void DisplayFrameBufferAttachments();
244 void DisplayFrameBufferAttachment(
unsigned int uattachment);
249 void DisplayDrawBuffers();
254 void DisplayReadBuffer();
259 void DisplayBuffer(
int value);
std::vector< unsigned int > ActiveBuffers
unsigned int NumberOfRenderTargets
void SetActiveBuffer(unsigned int index)
Choose the buffers to render into.
vtkWeakPointer< vtkRenderWindow > Context
std::vector< vtkSmartPointer< vtkTextureObject > > ColorBuffers
abstract interface to OpenGL FBOs
std::vector< vtkSmartPointer< vtkTextureObject > > UserColorBuffers
a simple class to control print indentation
vtkSmartPointer< vtkTextureObject > UserDepthBuffer
std::vector< unsigned int > UserZSlices
abstracts an OpenGL pixel buffer object.
Interface class for querying and using OpenGL extensions.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
internal class which encapsulates OpenGL frame buffer object.
abstracts an OpenGL texture object.
create a window for renderers to draw into
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.