]> git.lizzy.rs Git - irrlicht.git/blob - source/Irrlicht/CMD3MeshFileLoader.h
Set includes and libs on object targets
[irrlicht.git] / source / Irrlicht / CMD3MeshFileLoader.h
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
4 \r
5 #ifndef __C_MD3_MESH_FILE_LOADER_H_INCLUDED__\r
6 #define __C_MD3_MESH_FILE_LOADER_H_INCLUDED__\r
7 \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
13 \r
14 namespace irr\r
15 {\r
16 namespace scene\r
17 {\r
18 \r
19 //! Meshloader capable of loading md3 files.\r
20 class CMD3MeshFileLoader : public IMeshLoader\r
21 {\r
22 public:\r
23 \r
24         //! Constructor\r
25         CMD3MeshFileLoader( scene::ISceneManager* smgr );\r
26 \r
27         //! destructor\r
28         virtual ~CMD3MeshFileLoader();\r
29 \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
33 \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
39 \r
40 private:\r
41         scene::ISceneManager* SceneManager;\r
42 \r
43 };\r
44 \r
45 } // end namespace scene\r
46 } // end namespace irr\r
47 \r
48 #endif\r
49 \r