VTK
vtkRenderbuffer.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkRenderbuffer.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
22#ifndef vtkRenderbuffer_h
23#define vtkRenderbuffer_h
24
25#include "vtkObject.h"
26#include "vtkRenderingOpenGLModule.h" // for export macro
27#include "vtkWeakPointer.h" // for render context
28
29class vtkRenderWindow;
31
32class VTKRENDERINGOPENGL_EXPORT vtkRenderbuffer : public vtkObject
33{
34public:
36 vtkTypeMacro(vtkRenderbuffer, vtkObject);
37 void PrintSelf(ostream& os, vtkIndent indent);
38
43 static bool IsSupported(vtkRenderWindow *renWin);
44
46
49 vtkGetMacro(Handle, unsigned int);
51
53
63
69 unsigned int width,
70 unsigned int height);
71
77 unsigned int width,
78 unsigned int height);
79
84 int Create(
85 unsigned int format,
86 unsigned int width,
87 unsigned int height);
88
89protected:
92
94 void Alloc();
95 void Free();
96
98
99private:
100 unsigned int Handle;
102
103private:
104 vtkRenderbuffer(const vtkRenderbuffer&) VTK_DELETE_FUNCTION;
105 void operator=(const vtkRenderbuffer&) VTK_DELETE_FUNCTION;
106};
107
108#endif
a simple class to control print indentation
Definition: vtkIndent.h:40
abstract base class for most VTK objects
Definition: vtkObject.h:60
create a window for renderers to draw into
Storage for FBO's.
static bool IsSupported(vtkRenderWindow *renWin)
Returns if the context supports the required extensions.
bool LoadRequiredExtensions(vtkRenderWindow *renWin)
int CreateColorAttachment(unsigned int width, unsigned int height)
Sets up an RGBAF renderbufffer for use as a color attachment.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int Create(unsigned int format, unsigned int width, unsigned int height)
Sets up an renderbufffer.
vtkRenderWindow * GetContext()
static vtkRenderbuffer * New()
void SetContext(vtkRenderWindow *win)
Setting the context has the side affect of initializing OpenGL required extensions and allocates an O...
int CreateDepthAttachment(unsigned int width, unsigned int height)
Sets up an DEPTH renderbufffer for use as a color attachment.
abstracts an OpenGL texture object.
@ height
Definition: vtkX3D.h:254