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);