arsa
2.7
|
Class which is able to load an animated mesh from a file. More...
#include <IMeshLoader.h>
Public Member Functions | |
IMeshLoader () | |
Constructor. More... | |
virtual | ~IMeshLoader () |
Destructor. More... | |
virtual bool | isALoadableFileExtension (const io::path &filename) const =0 |
Returns true if the file might be loaded by this class. More... | |
virtual IAnimatedMesh * | createMesh (io::IReadFile *file)=0 |
Creates/loads an animated mesh from the file. More... | |
virtual void | setMeshTextureLoader (IMeshTextureLoader *textureLoader) |
Set a new texture loader which this meshloader can use when searching for textures. More... | |
virtual IMeshTextureLoader * | getMeshTextureLoader () const |
Get the texture loader used when this meshloader searches for textures. 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 c8 * | getDebugName () const |
Returns the debug name of the object. More... | |
Protected Attributes | |
IMeshTextureLoader * | TextureLoader |
Additional Inherited Members | |
Protected Member Functions inherited from irr::IReferenceCounted | |
void | setDebugName (const c8 *newName) |
Sets the debug name of the object. More... | |
Class which is able to load an animated mesh from a file.
If you want Irrlicht be able to load meshes of currently unsupported file formats (e.g. .cob), then implement this and add your new Meshloader with ISceneManager::addExternalMeshLoader() to the engine.
Definition at line 27 of file IMeshLoader.h.
|
inline |
Constructor.
Definition at line 32 of file IMeshLoader.h.
|
inlinevirtual |
Destructor.
Definition at line 35 of file IMeshLoader.h.
|
pure virtual |
Creates/loads an animated mesh from the file.
file | File handler to load the file from. |
|
inlinevirtual |
Get the texture loader used when this meshloader searches for textures.
NOTE: not all meshloaders support this interface so this can return NULL.
Definition at line 76 of file IMeshLoader.h.
|
pure virtual |
Returns true if the file might be loaded by this class.
This decision should be based on the file extension (e.g. ".cob") only.
filename | Name of the file to test. |
|
inlinevirtual |
Set a new texture loader which this meshloader can use when searching for textures.
NOTE: Not all meshloaders do support this interface. Meshloaders which support it will return a non-null value in getMeshTextureLoader from the start. Setting a texture-loader to a meshloader which doesn't support it won't help.
textureLoader | The textureloader to use. When set to NULL the mesh will not load any textures. |
Definition at line 61 of file IMeshLoader.h.
|
protected |
Definition at line 82 of file IMeshLoader.h.