VTK
9.0.1
Rendering
OpenGL2
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
=========================================================================*/
30
#ifndef vtkTextureUnitManager_h
31
#define vtkTextureUnitManager_h
32
33
#include "
vtkObject.h
"
34
#include "vtkRenderingOpenGL2Module.h"
// For export macro
35
36
class
vtkOpenGLRenderWindow
;
37
38
class
VTKRENDERINGOPENGL2_EXPORT
vtkTextureUnitManager
:
public
vtkObject
39
{
40
public
:
41
vtkTypeMacro(
vtkTextureUnitManager
,
vtkObject
);
42
43
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
44
45
static
vtkTextureUnitManager
*
New
();
46
50
void
Initialize();
51
55
int
GetNumberOfTextureUnits();
56
64
virtual
int
Allocate();
65
77
virtual
int
Allocate(
int
unit);
78
84
bool
IsAllocated(
int
textureUnitId);
85
91
virtual
void
Free(
int
textureUnitId);
92
93
protected
:
97
vtkTextureUnitManager
();
98
102
~
vtkTextureUnitManager
()
override
;
103
108
void
DeleteTable();
109
110
int
NumberOfTextureUnits
;
111
bool
*
TextureUnits
;
112
113
private
:
114
vtkTextureUnitManager
(
const
vtkTextureUnitManager
&) =
delete
;
115
void
operator=(
const
vtkTextureUnitManager
&) =
delete
;
116
};
117
118
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:51
vtkTextureUnitManager::NumberOfTextureUnits
int NumberOfTextureUnits
Definition:
vtkTextureUnitManager.h:110
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:62
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:33
vtkTextureUnitManager
allocate/free texture units.
Definition:
vtkTextureUnitManager.h:38
vtkObject::New
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
vtkObject.h
vtkTextureUnitManager::TextureUnits
bool * TextureUnits
Definition:
vtkTextureUnitManager.h:111
Generated on Sat Jun 12 2021 07:24:17 for VTK by
1.8.14