Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IMeshTextureLoader.hpp
1// This file is part of the "Irrlicht Engine".
2// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
3
4#ifndef NIRT_I_MESH_TEXTURE_LOADER_HPP_INCLUDED
5#define NIRT_I_MESH_TEXTURE_LOADER_HPP_INCLUDED
6
7#include <nirtcpp/core/engine/path.hpp>
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9
10namespace nirt
11{
12
13namespace video
14{
15 class ITexture;
16}
17namespace io
18{
19 class IReadFile;
20}
21
22namespace scene
23{
24
26
31{
32public:
33
36
38
39 virtual void setTexturePath(const nirt::io::path& path) = 0;
40
42 virtual const nirt::io::path& getTexturePath() const = 0;
43
45
48 virtual nirt::video::ITexture* getTexture(const nirt::io::path& textureName) = 0;
49
51
53 virtual void setMeshFile(const nirt::io::IReadFile* meshFile) = 0;
54
56
58 virtual void setMaterialFile(const nirt::io::IReadFile* materialFile) = 0;
59};
60
61
62} // end namespace scene
63} // end namespace nirt
64
65#endif
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing read access to a file.
Definition IReadFile.hpp:19
Finding and loading textures inside meshloaders.
Definition IMeshTextureLoader.hpp:31
virtual nirt::video::ITexture * getTexture(const nirt::io::path &textureName)=0
Get the texture by searching for it in all paths that makes sense for the given textureName.
virtual ~IMeshTextureLoader()
Destructor.
Definition IMeshTextureLoader.hpp:35
virtual void setMeshFile(const nirt::io::IReadFile *meshFile)=0
Meshloaders will search paths relative to the meshFile.
virtual const nirt::io::path & getTexturePath() const =0
Get the current custom texture path.
virtual void setMaterialFile(const nirt::io::IReadFile *materialFile)=0
Meshloaders will try to look relative to the path of the materialFile.
virtual void setTexturePath(const nirt::io::path &path)=0
Set a custom texture path.
Interface of a Video Driver dependent Texture.
Definition ITexture.hpp:186
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print