Saga3D API Documentation
1.0-RC4
|
Class which is able to load a static/animated mesh from a file. More...
#include <IMeshLoader.h>
Public Member Functions | |
IMeshLoader () | |
Constructor. More... | |
virtual | ~IMeshLoader () |
Destructor. More... | |
virtual bool | isSupportedExtension (const std::string &filename) const =0 |
Returns true if the file might be loaded by this class. More... | |
virtual std::shared_ptr< IMesh > | createMesh (void *data, const std::size_t size, const std::string &extension)=0 |
Loads a mesh from the file. More... | |
Class which is able to load a static/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 18 of file IMeshLoader.h.
|
inline |
Constructor.
Definition at line 22 of file IMeshLoader.h.
|
inlinevirtual |
Destructor.
Definition at line 25 of file IMeshLoader.h.
|
pure virtual |
Loads a mesh from the file.
data | Pointer to mesh file in memory to read. |
size | Size of mesh file. |
|
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. |