VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Rendering
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 "
vtkObject.h
"
33
34
class
vtkOpenGLRenderWindow
;
35
36
class
VTK_RENDERING_EXPORT
vtkTextureUnitManager
:
public
vtkObject
37
{
38
public
:
39
vtkTypeMacro(
vtkTextureUnitManager
,
vtkObject
);
40
41
void
PrintSelf
(ostream& os,
vtkIndent
indent);
42
43
static
vtkTextureUnitManager
*
New
();
44
46
50
void
SetContext(
vtkOpenGLRenderWindow
*context);
51
vtkGetObjectMacro(Context,
vtkOpenGLRenderWindow
);
53
55
int
GetNumberOfTextureUnits();
56
62
virtual
int
Allocate();
63
67
bool
IsAllocated(
int
textureUnitId);
68
72
virtual
void
Free(
int
textureUnitId);
73
74
protected
:
76
vtkTextureUnitManager
();
77
79
~
vtkTextureUnitManager
();
80
83
void
DeleteTable();
84
85
vtkOpenGLRenderWindow
*
Context
;
86
87
int
NumberOfTextureUnits
;
88
bool
*
TextureUnits
;
89
90
private
:
91
vtkTextureUnitManager
(
const
vtkTextureUnitManager
&);
// Not implemented.
92
void
operator=(
const
vtkTextureUnitManager
&);
// Not implemented.
93
};
94
95
#endif
vtkOpenGLRenderWindow
OpenGL rendering window.
Definition:
vtkOpenGLRenderWindow.h:39
vtkTextureUnitManager::NumberOfTextureUnits
int NumberOfTextureUnits
Definition:
vtkTextureUnitManager.h:87
vtkObject
abstract base class for most VTK objects
Definition:
vtkObject.h:60
vtkObject::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:37
vtkTextureUnitManager::Context
vtkOpenGLRenderWindow * Context
Definition:
vtkTextureUnitManager.h:85
VTK_RENDERING_EXPORT
#define VTK_RENDERING_EXPORT
Definition:
vtkWin32Header.h:278
vtkTextureUnitManager
allocate/free texture units.
Definition:
vtkTextureUnitManager.h:36
vtkObject::New
static vtkObject * New()
vtkObject.h
vtkTextureUnitManager::TextureUnits
bool * TextureUnits
Definition:
vtkTextureUnitManager.h:88
Generated on Sun Oct 19 2014 13:07:33 for VTK by
1.8.8