1 // Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __C_MD3_MESH_FILE_LOADER_H_INCLUDED__
\r
6 #define __C_MD3_MESH_FILE_LOADER_H_INCLUDED__
\r
8 #include "IMeshLoader.h"
\r
9 #include "IFileSystem.h"
\r
10 #include "IVideoDriver.h"
\r
11 #include "ISceneManager.h"
\r
12 #include "IQ3Shader.h"
\r
19 //! Meshloader capable of loading md3 files.
\r
20 class CMD3MeshFileLoader : public IMeshLoader
\r
25 CMD3MeshFileLoader( scene::ISceneManager* smgr );
\r
28 virtual ~CMD3MeshFileLoader();
\r
30 //! returns true if the file maybe is able to be loaded by this class
\r
31 //! based on the file extension (e.g. ".bsp")
\r
32 virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;
\r
34 //! creates/loads an animated mesh from the file.
\r
35 //! \return Pointer to the created mesh. Returns 0 if loading failed.
\r
36 //! If you no longer need the mesh, you should call IAnimatedMesh::drop().
\r
37 //! See IReferenceCounted::drop() for more information.
\r
38 virtual IAnimatedMesh* createMesh(io::IReadFile* file) _IRR_OVERRIDE_;
\r
41 scene::ISceneManager* SceneManager;
\r
45 } // end namespace scene
\r
46 } // end namespace irr
\r