5#ifndef NIRT_I_MESH_LOADER_HPP_INCLUDED
6#define NIRT_I_MESH_LOADER_HPP_INCLUDED
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/path.hpp>
10#include <nirtcpp/core/engine/IMeshTextureLoader.hpp>
11#include <nirtcpp/core/engine/SVertexIndex.hpp>
39 TextureLoader->
drop();
64 if ( textureLoader != TextureLoader )
67 textureLoader->
grab();
69 TextureLoader->
drop();
70 TextureLoader = textureLoader;
109 IndexTypeHint = typeHint;
116 return IndexTypeHint;
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
bool drop() const
Drops the object. Decrements the reference counter by one.
Definition IReferenceCounted.hpp:126
void grab() const
Grabs the object. Increments the reference counter by one.
Definition IReferenceCounted.hpp:96
Interface providing read access to a file.
Definition IReadFile.hpp:19
Interface for an animated mesh.
Definition IAnimatedMesh.hpp:21
Class which is able to load an animated mesh from a file.
Definition IMeshLoader.hpp:29
void setIndexTypeHint(E_INDEX_TYPE_HINT typeHint)
Give loader a hint if you would prefer 16 or 32 bit meshbuffers.
Definition IMeshLoader.hpp:107
IMeshLoader()
Constructor.
Definition IMeshLoader.hpp:33
E_INDEX_TYPE_HINT
Definition IMeshLoader.hpp:83
@ EITH_16BIT
Definition IMeshLoader.hpp:86
@ EITH_OPTIMAL
Definition IMeshLoader.hpp:95
@ EITH_32BIT
Allow using 32-bit index buffers.
Definition IMeshLoader.hpp:89
E_INDEX_TYPE_HINT getIndexTypeHint() const
Return current preference user has for the index type of meshbuffers.
Definition IMeshLoader.hpp:114
virtual IMeshTextureLoader * getMeshTextureLoader() const
Get the texture loader used when this meshloader searches for textures.
Definition IMeshLoader.hpp:77
virtual void setMeshTextureLoader(IMeshTextureLoader *textureLoader)
Set a new texture loader which this meshloader can use when searching for textures.
Definition IMeshLoader.hpp:62
virtual IAnimatedMesh * createMesh(io::IReadFile *file)=0
Creates/loads an animated mesh from the file.
virtual ~IMeshLoader()
Destructor.
Definition IMeshLoader.hpp:36
virtual bool isALoadableFileExtension(const io::path &filename) const =0
Returns true if the file might be loaded by this class.
Finding and loading textures inside meshloaders.
Definition IMeshTextureLoader.hpp:31
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11