arsa  2.7
IMeshTextureLoader.h
Go to the documentation of this file.
1 // This file is part of the "Irrlicht Engine".
2 // For conditions of distribution and use, see copyright notice in irrlicht.h
3 
4 #ifndef IRR_I_MESH_TEXTURE_LOADER_H_INCLUDED__
5 #define IRR_I_MESH_TEXTURE_LOADER_H_INCLUDED__
6 
7 #include "path.h"
8 #include "IReferenceCounted.h"
9 
10 namespace irr
11 {
12 
13 namespace video
14 {
15  class ITexture;
16 }
17 namespace io
18 {
19  class IReadFile;
20 }
21 
22 namespace scene
23 {
24 
26 
30 class IMeshTextureLoader : public virtual IReferenceCounted
31 {
32 public:
33 
35  virtual ~IMeshTextureLoader() {}
36 
38 
39  virtual void setTexturePath(const irr::io::path& path) = 0;
40 
42  virtual const irr::io::path& getTexturePath() const = 0;
43 
45 
48  virtual irr::video::ITexture* getTexture(const irr::io::path& textureName) = 0;
49 
51 
53  virtual void setMeshFile(const irr::io::IReadFile* meshFile) = 0;
54 
56 
58  virtual void setMaterialFile(const irr::io::IReadFile* materialFile) = 0;
59 };
60 
61 
62 } // end namespace scene
63 } // end namespace irr
64 
65 #endif
Interface providing read access to a file.
Definition: IReadFile.h:18
virtual irr::video::ITexture * getTexture(const irr::io::path &textureName)=0
Get the texture by searching for it in all paths that makes sense for the given textureName.
Finding and loading textures inside meshloaders.
virtual void setMaterialFile(const irr::io::IReadFile *materialFile)=0
Meshloaders will try to look relative to the path of the materialFile.
virtual const irr::io::path & getTexturePath() const =0
Get the current custom texture path.
virtual ~IMeshTextureLoader()
Destructor.
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
virtual void setTexturePath(const irr::io::path &path)=0
Set a custom texture path.
virtual void setMeshFile(const irr::io::IReadFile *meshFile)=0
Meshloaders will search paths relative to the meshFile.
Interface of a Video Driver dependent Texture.
Definition: ITexture.h:177
Base class of most objects of the Irrlicht Engine.
GLsizei const GLchar *const * path