Irrlicht 3D Engine
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
IMeshCache.h
Go to the documentation of this file.
1
// Copyright (C) 2002-2012 Nikolaus Gebhardt
2
// This file is part of the "Irrlicht Engine".
3
// For conditions of distribution and use, see copyright notice in irrlicht.h
4
5
#ifndef __I_MESH_CACHE_H_INCLUDED__
6
#define __I_MESH_CACHE_H_INCLUDED__
7
8
#include "
IReferenceCounted.h
"
9
#include "
path.h
"
10
11
namespace
irr
12
{
13
14
namespace
scene
15
{
16
class
IMesh;
17
class
IAnimatedMesh;
18
class
IAnimatedMeshSceneNode;
19
class
IMeshLoader;
20
22
27
class
IMeshCache
:
public
virtual
IReferenceCounted
28
{
29
public
:
30
32
virtual
~IMeshCache
() {}
33
35
50
virtual
void
addMesh
(
const
io::path
& name,
IAnimatedMesh
* mesh) = 0;
51
53
57
virtual
void
removeMesh
(
const
IMesh
*
const
mesh) = 0;
58
60
65
virtual
u32
getMeshCount
()
const
= 0;
66
68
70
virtual
s32
getMeshIndex
(
const
IMesh
*
const
mesh)
const
= 0;
71
73
79
virtual
IAnimatedMesh
*
getMeshByIndex
(
u32
index) = 0;
80
82
84
_IRR_DEPRECATED_
IAnimatedMesh
*
getMeshByFilename
(
const
io::path
& filename)
85
{
86
return
getMeshByName
(filename);
87
}
88
90
92
_IRR_DEPRECATED_
const
io::path
&
getMeshFilename
(
u32
index)
const
93
{
94
return
getMeshName
(index).
getInternalName
();
95
}
96
98
100
_IRR_DEPRECATED_
const
io::path
&
getMeshFilename
(
const
IMesh
*
const
mesh)
const
101
{
102
return
getMeshName
(mesh).
getInternalName
();
103
}
104
106
108
_IRR_DEPRECATED_
bool
setMeshFilename
(
u32
index,
const
io::path
& filename)
109
{
110
return
renameMesh
(index, filename);
111
}
112
114
116
_IRR_DEPRECATED_
bool
setMeshFilename
(
const
IMesh
*
const
mesh,
const
io::path
& filename)
117
{
118
return
renameMesh
(mesh, filename);
119
}
120
122
124
virtual
IAnimatedMesh
*
getMeshByName
(
const
io::path
& name) = 0;
125
127
129
virtual
const
io::SNamedPath
&
getMeshName
(
u32
index)
const
= 0;
130
132
134
virtual
const
io::SNamedPath
&
getMeshName
(
const
IMesh
*
const
mesh)
const
= 0;
135
137
143
virtual
bool
renameMesh
(
u32
index,
const
io::path
& name) = 0;
144
146
152
virtual
bool
renameMesh
(
const
IMesh
*
const
mesh,
const
io::path
& name) = 0;
153
155
157
virtual
bool
isMeshLoaded
(
const
io::path
& name) = 0;
158
160
164
virtual
void
clear
() = 0;
165
167
169
virtual
void
clearUnusedMeshes
() = 0;
170
};
171
172
173
}
// end namespace scene
174
}
// end namespace irr
175
176
#endif
177
Irrlicht Engine
Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on Tue Apr 7 2020 19:33:42 for Irrlicht 3D Engine by
Doxygen
1.8.1.2