VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Builds
VTK
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
=========================================================================*/
30
#ifndef vtkTextureUnitManager_h
31
#define vtkTextureUnitManager_h
32
33
#include "vtkRenderingOpenGLModule.h"
// For export macro
34
#include "
vtkObject.h
"
35
36
class
vtkOpenGLRenderWindow
;
37
38
class
VTKRENDERINGOPENGL_EXPORT
vtkTextureUnitManager
:
public
vtkObject
39
{
40
public
:
41
vtkTypeMacro(
vtkTextureUnitManager
,
vtkObject
);
42
43
void
PrintSelf
(ostream& os,
vtkIndent
indent);
44
45
static
vtkTextureUnitManager
*
New
();
46
48
54
void
SetContext(
vtkOpenGLRenderWindow
*context);
55
vtkGetObjectMacro(Context,
vtkOpenGLRenderWindow
);
57
61
int
GetNumberOfTextureUnits();
62
70
virtual
int
Allocate();
71
76
bool
IsAllocated(
int
textureUnitId);
77
83
virtual
void
Free(
int
textureUnitId);
84
85
protected
:
89
vtkTextureUnitManager
();
90
94
~
vtkTextureUnitManager
();
95
100
void
DeleteTable();
101
102
vtkOpenGLRenderWindow
*
Context
;
103
104
int
NumberOfTextureUnits
;
105
bool
*
TextureUnits
;
106
107
private
:
108
vtkTextureUnitManager
(
const
vtkTextureUnitManager
&) VTK_DELETE_FUNCTION;
109
void
operator=(const
vtkTextureUnitManager
&) VTK_DELETE_FUNCTION;
110
};
111
112
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:38
vtkTextureUnitManager::NumberOfTextureUnits
int NumberOfTextureUnits
Definition:
vtkTextureUnitManager.h:104
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
vtkTextureUnitManager::Context
vtkOpenGLRenderWindow * Context
Definition:
vtkTextureUnitManager.h:102
vtkTextureUnitManager::TextureUnits
bool * TextureUnits
Definition:
vtkTextureUnitManager.h:105
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
Generated by
1.8.9.1