arsa  2.7
Public Member Functions | List of all members
irr::scene::IMeshTextureLoader Class Referenceabstract

Finding and loading textures inside meshloaders. More...

#include <IMeshTextureLoader.h>

Inheritance diagram for irr::scene::IMeshTextureLoader:
irr::IReferenceCounted

Public Member Functions

virtual ~IMeshTextureLoader ()
 Destructor. More...
 
virtual void setTexturePath (const irr::io::path &path)=0
 Set a custom texture path. More...
 
virtual const irr::io::pathgetTexturePath () const =0
 Get the current custom texture path. More...
 
virtual irr::video::ITexturegetTexture (const irr::io::path &textureName)=0
 Get the texture by searching for it in all paths that makes sense for the given textureName. More...
 
virtual void setMeshFile (const irr::io::IReadFile *meshFile)=0
 Meshloaders will search paths relative to the meshFile. More...
 
virtual void setMaterialFile (const irr::io::IReadFile *materialFile)=0
 Meshloaders will try to look relative to the path of the materialFile. More...
 
- Public Member Functions inherited from irr::IReferenceCounted
 IReferenceCounted ()
 Constructor. More...
 
virtual ~IReferenceCounted ()
 Destructor. More...
 
void grab () const
 Grabs the object. Increments the reference counter by one. More...
 
bool drop () const
 Drops the object. Decrements the reference counter by one. More...
 
s32 getReferenceCount () const
 Get the reference count. More...
 
const c8getDebugName () const
 Returns the debug name of the object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from irr::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object. More...
 

Detailed Description

Finding and loading textures inside meshloaders.

A texture loader can search for a texture in several paths. For example relative to a given texture-path, relative to the current working directory or relative to a mesh- and/or material-file.

Definition at line 30 of file IMeshTextureLoader.h.

Constructor & Destructor Documentation

◆ ~IMeshTextureLoader()

virtual irr::scene::IMeshTextureLoader::~IMeshTextureLoader ( )
inlinevirtual

Destructor.

Definition at line 35 of file IMeshTextureLoader.h.

35 {}

Member Function Documentation

◆ getTexture()

virtual irr::video::ITexture* irr::scene::IMeshTextureLoader::getTexture ( const irr::io::path textureName)
pure virtual

Get the texture by searching for it in all paths that makes sense for the given textureName.

Usually you do not have to use this method, it is used internally by IMeshLoader's.

Parameters
textureNameTexturename as used in the mesh-format
Returns
Pointer to the texture. Returns 0 if loading failed.

◆ getTexturePath()

virtual const irr::io::path& irr::scene::IMeshTextureLoader::getTexturePath ( ) const
pure virtual

Get the current custom texture path.

◆ setMaterialFile()

virtual void irr::scene::IMeshTextureLoader::setMaterialFile ( const irr::io::IReadFile materialFile)
pure virtual

Meshloaders will try to look relative to the path of the materialFile.

Usually you do not have to use this method, it is used internally by IMeshLoader's. Any values you set here will likely be overwritten internally.

◆ setMeshFile()

virtual void irr::scene::IMeshTextureLoader::setMeshFile ( const irr::io::IReadFile meshFile)
pure virtual

Meshloaders will search paths relative to the meshFile.

Usually you do not have to use this method, it is used internally by IMeshLoader's. Any values you set here will likely be overwritten internally.

◆ setTexturePath()

virtual void irr::scene::IMeshTextureLoader::setTexturePath ( const irr::io::path path)
pure virtual

Set a custom texture path.

This is the first path the texture-loader should search.


The documentation for this class was generated from the following file: