 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_MESH_CACHE_H_INCLUDED__
6 #define __I_MESH_CACHE_H_INCLUDED__
18 class IAnimatedMeshSceneNode;
164 virtual void clear() = 0;
virtual void addMesh(const io::path &name, IAnimatedMesh *mesh)=0
Adds a mesh to the internal list of loaded meshes.
virtual void clear()=0
Clears the whole mesh cache, removing all meshes.
virtual void removeMesh(const IMesh *const mesh)=0
Removes the mesh from the cache.
virtual IAnimatedMesh * getMeshByName(const io::path &name)=0
Returns a mesh based on its name.
const _IRR_DEPRECATED_ io::path & getMeshFilename(const IMesh *const mesh) const
Get the name of a loaded mesh, if there is any. (Name is often identical to the filename).
virtual void clearUnusedMeshes()=0
Clears all meshes that are held in the mesh cache but not used anywhere else.
Interface for an animated mesh.
signed int s32
32 bit signed variable.
Base class of most objects of the Irrlicht Engine.
virtual s32 getMeshIndex(const IMesh *const mesh) const =0
Returns current index number of the mesh or -1 when not found.
virtual ~IMeshCache()
Destructor.
Used in places where we identify objects by a filename, but don't actually work with the real filenam...
virtual const io::SNamedPath & getMeshName(u32 index) const =0
Get the name of a loaded mesh, based on its index.
The mesh cache stores already loaded meshes and provides an interface to them.
const _IRR_DEPRECATED_ io::path & getMeshFilename(u32 index) const
Get the name of a loaded mesh, based on its index. (Name is often identical to the filename).
Class which holds the geometry of an object.
virtual u32 getMeshCount() const =0
Returns amount of loaded meshes in the cache.
Everything in the Irrlicht Engine can be found in this namespace.
virtual bool isMeshLoaded(const io::path &name)=0
Check if a mesh was already loaded.
unsigned int u32
32 bit unsigned variable.
virtual bool renameMesh(u32 index, const io::path &name)=0
Renames a loaded mesh.
virtual IAnimatedMesh * getMeshByIndex(u32 index)=0
Returns a mesh based on its index number.
_IRR_DEPRECATED_ IAnimatedMesh * getMeshByFilename(const io::path &filename)
Returns a mesh based on its name (often a filename).
const path & getInternalName() const
#define _IRR_DEPRECATED_
Defines a deprecated macro which generates a warning at compile time.
_IRR_DEPRECATED_ bool setMeshFilename(u32 index, const io::path &filename)
Renames a loaded mesh.
_IRR_DEPRECATED_ bool setMeshFilename(const IMesh *const mesh, const io::path &filename)
Renames a loaded mesh.