VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Rendering
OpenGL
vtkTextureUnitManager.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkTextureUnitManager.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
=========================================================================*/
29
#ifndef vtkTextureUnitManager_h
30
#define vtkTextureUnitManager_h
31
32
#include "
vtkRenderingOpenGLModule.h
"
// For export macro
33
#include "
vtkObject.h
"
34
35
class
vtkOpenGLRenderWindow
;
36
37
class
VTKRENDERINGOPENGL_EXPORT
vtkTextureUnitManager
:
public
vtkObject
38
{
39
public
:
40
vtkTypeMacro(
vtkTextureUnitManager
,
vtkObject
);
41
42
void
PrintSelf
(ostream& os,
vtkIndent
indent);
43
44
static
vtkTextureUnitManager
*
New
();
45
47
51
void
SetContext(
vtkOpenGLRenderWindow
*context);
52
vtkGetObjectMacro(Context,
vtkOpenGLRenderWindow
);
54
56
int
GetNumberOfTextureUnits();
57
63
virtual
int
Allocate();
64
68
bool
IsAllocated(
int
textureUnitId);
69
73
virtual
void
Free(
int
textureUnitId);
74
75
protected
:
77
vtkTextureUnitManager
();
78
80
~
vtkTextureUnitManager
();
81
84
void
DeleteTable();
85
86
vtkOpenGLRenderWindow
*
Context
;
87
88
int
NumberOfTextureUnits
;
89
bool
*
TextureUnits
;
90
91
private
:
92
vtkTextureUnitManager
(
const
vtkTextureUnitManager
&);
// Not implemented.
93
void
operator=(
const
vtkTextureUnitManager
&);
// Not implemented.
94
};
95
96
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:37
vtkTextureUnitManager::NumberOfTextureUnits
int NumberOfTextureUnits
Definition:
vtkTextureUnitManager.h:88
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:61
vtkObject::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkTextureUnitManager::Context
vtkOpenGLRenderWindow * Context
Definition:
vtkTextureUnitManager.h:86
VTKRENDERINGOPENGL_EXPORT
#define VTKRENDERINGOPENGL_EXPORT
Definition:
vtkRenderingOpenGLModule.h:15
vtkTextureUnitManager::TextureUnits
bool * TextureUnits
Definition:
vtkTextureUnitManager.h:89
vtkRenderingOpenGLModule.h
vtkTextureUnitManager
allocate/free texture units.
Definition:
vtkTextureUnitManager.h:37
vtkObject::New
static vtkObject * New()
vtkObject.h
Generated by
1.8.9.1