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();
188 return this->LastSize;
192 _arg1 = this->LastSize[0];
193 _arg2 = this->LastSize[1];
211 int CheckFrameBufferStatus(
unsigned int mode);
229 void CreateDepthBuffer(
int width,
int height,
unsigned int mode);
235 void CreateColorBuffers(
239 bool shaderSupportsTextureInt);
242 void DestroyDepthBuffer();
243 void DestroyColorBuffers();
246 void ActivateBuffers();
251 void DisplayFrameBufferAttachments();
256 void DisplayFrameBufferAttachment(
unsigned int uattachment);
261 void DisplayDrawBuffers();
266 void DisplayReadBuffer();
271 void DisplayBuffer(
int value);
278 bool DepthBufferNeeded;
279 bool ColorBuffersDirty;
280 unsigned int FBOIndex;
281 int PreviousFBOIndex;
282 unsigned int DepthBuffer;
283 unsigned int NumberOfRenderTargets;
290 bool DepthBufferDirty;
virtual int * GetLastSize()=0
Dimensions in pixels of the framebuffer.
Hold a reference to a vtkObjectBase instance.
void SetActiveBuffer(unsigned int index)
Choose the buffers to render into.
int * GetLastSize() override
Dimensions in pixels of the framebuffer.
abstract interface to OpenGL FBOs
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
a weak reference to a vtkObject.
void GetLastSize(int _arg[2]) override
Dimensions in pixels of the framebuffer.
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 GetLastSize(int &_arg1, int &_arg2) override
Dimensions in pixels of the framebuffer.