VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Builds
VTK
release
Utilities
Doxygen
dox
Rendering
OpenGL
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
29
class
vtkRenderWindow
;
30
class
vtkTextureObject
;
31
32
class
VTKRENDERINGOPENGL_EXPORT
vtkRenderbuffer
:
public
vtkObject
33
{
34
public
:
35
static
vtkRenderbuffer
*
New
();
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
60
void
SetContext(
vtkRenderWindow
*win);
61
vtkRenderWindow
* GetContext();
63
68
int
CreateColorAttachment(
69
unsigned
int
width,
70
unsigned
int
height
);
71
76
int
CreateDepthAttachment(
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
89
protected
:
90
vtkRenderbuffer
();
91
~
vtkRenderbuffer
();
92
93
bool
LoadRequiredExtensions(
vtkRenderWindow
*renWin);
94
void
Alloc();
95
void
Free();
96
97
int
DepthBufferFloat
;
98
99
private
:
100
unsigned
int
Handle;
101
vtkWeakPointer<vtkRenderWindow>
Context;
102
103
private
:
104
vtkRenderbuffer
(
const
vtkRenderbuffer
&) VTK_DELETE_FUNCTION;
105
void
operator=(const
vtkRenderbuffer
&) VTK_DELETE_FUNCTION;
106
};
107
108
#endif
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:59
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkWeakPointer< vtkRenderWindow >
vtkRenderbuffer::DepthBufferFloat
int DepthBufferFloat
Definition:
vtkRenderbuffer.h:97
vtkX3D::height
Definition:
vtkX3D.h:254
vtkTextureObject
abstracts an OpenGL texture object.
Definition:
vtkTextureObject.h:40
vtkWeakPointer.h
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:86
vtkRenderbuffer
Storage for FBO's.
Definition:
vtkRenderbuffer.h:32
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
Generated by
1.8.9.1