VTK
dox
Rendering
OpenGL2
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 "vtkRenderingOpenGL2Module.h"
// for export macro
27
#include "
vtkWeakPointer.h
"
// for render context
28
29
class
vtkRenderWindow
;
30
31
class
VTKRENDERINGOPENGL2_EXPORT
vtkRenderbuffer
:
public
vtkObject
32
{
33
public
:
34
static
vtkRenderbuffer
*
New
();
35
vtkTypeMacro(
vtkRenderbuffer
,
vtkObject
);
36
void
PrintSelf
(ostream& os,
vtkIndent
indent);
37
42
static
bool
IsSupported(
vtkRenderWindow
*renWin);
43
45
48
vtkGetMacro(Handle,
unsigned
int
);
50
52
59
void
SetContext(
vtkRenderWindow
*win);
60
vtkRenderWindow
* GetContext();
62
67
int
CreateColorAttachment(
68
unsigned
int
width,
69
unsigned
int
height
);
70
75
int
CreateDepthAttachment(
76
unsigned
int
width,
77
unsigned
int
height
);
78
83
int
Create(
84
unsigned
int
format,
85
unsigned
int
width,
86
unsigned
int
height
);
87
88
protected
:
89
vtkRenderbuffer
();
90
~
vtkRenderbuffer
();
91
92
bool
LoadRequiredExtensions(
vtkRenderWindow
*renWin);
93
void
Alloc();
94
void
Free();
95
96
int
DepthBufferFloat;
97
98
private
:
99
unsigned
int
Handle;
100
vtkWeakPointer<vtkRenderWindow>
Context;
101
102
private
:
103
vtkRenderbuffer
(
const
vtkRenderbuffer
&) VTK_DELETE_FUNCTION;
104
void
operator=(
const
vtkRenderbuffer
&) VTK_DELETE_FUNCTION;
105
};
106
107
#endif
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkX3D::height
Definition:
vtkX3D.h:254
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWeakPointer.h
vtkObject.h
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:86
vtkWeakPointer< vtkRenderWindow >
vtkRenderbuffer
Storage for FBO's.
Definition:
vtkRenderbuffer.h:32
Generated by
1.8.16