Jimcpp 2.1.0
Jimcpp 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 jimcpp/jimcpp.hpp
3
4#ifndef JPP_I_MESH_TEXTURE_LOADER_HPP_INCLUDED
5#define JPP_I_MESH_TEXTURE_LOADER_HPP_INCLUDED
6
7#include <jimcpp/core/engine/path.hpp>
8#include <jimcpp/core/engine/IReferenceCounted.hpp>
9
10namespace jpp
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 jpp::io::path& path) = 0;
40
42 virtual const jpp::io::path& getTexturePath() const = 0;
43
45
48 virtual jpp::video::ITexture* getTexture(const jpp::io::path& textureName) = 0;
49
51
53 virtual void setMeshFile(const jpp::io::IReadFile* meshFile) = 0;
54
56
58 virtual void setMaterialFile(const jpp::io::IReadFile* materialFile) = 0;
59};
60
61
62} // end namespace scene
63} // end namespace jpp
64
65#endif
Base class of most objects of the Jimcpp 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 void setTexturePath(const jpp::io::path &path)=0
Set a custom texture path.
virtual jpp::video::ITexture * getTexture(const jpp::io::path &textureName)=0
Get the texture by searching for it in all paths that makes sense for the given textureName.
virtual const jpp::io::path & getTexturePath() const =0
Get the current custom texture path.
virtual ~IMeshTextureLoader()
Destructor.
Definition IMeshTextureLoader.hpp:35
virtual void setMeshFile(const jpp::io::IReadFile *meshFile)=0
Meshloaders will search paths relative to the meshFile.
virtual void setMaterialFile(const jpp::io::IReadFile *materialFile)=0
Meshloaders will try to look relative to the path of the materialFile.
Interface of a Video Driver dependent Texture.
Definition ITexture.hpp:186
As of Jimcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11

Jimcpp    @cppfx.xyz