diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp b/libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp index 68f8d80..073d704 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp +++ b/libraries/irrlicht-1.8/source/Irrlicht/CMD3MeshFileLoader.cpp | |||
@@ -1,53 +1,53 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #include "IrrCompileConfig.h" | 5 | #include "IrrCompileConfig.h" |
6 | #ifdef _IRR_COMPILE_WITH_MD3_LOADER_ | 6 | #ifdef _IRR_COMPILE_WITH_MD3_LOADER_ |
7 | 7 | ||
8 | #include "CMD3MeshFileLoader.h" | 8 | #include "CMD3MeshFileLoader.h" |
9 | #include "CAnimatedMeshMD3.h" | 9 | #include "CAnimatedMeshMD3.h" |
10 | #include "irrString.h" | 10 | #include "irrString.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | namespace scene | 14 | namespace scene |
15 | { | 15 | { |
16 | 16 | ||
17 | //! Constructor | 17 | //! Constructor |
18 | CMD3MeshFileLoader::CMD3MeshFileLoader( scene::ISceneManager* smgr) | 18 | CMD3MeshFileLoader::CMD3MeshFileLoader( scene::ISceneManager* smgr) |
19 | : SceneManager(smgr) | 19 | : SceneManager(smgr) |
20 | { | 20 | { |
21 | } | 21 | } |
22 | 22 | ||
23 | 23 | ||
24 | //! destructor | 24 | //! destructor |
25 | CMD3MeshFileLoader::~CMD3MeshFileLoader() | 25 | CMD3MeshFileLoader::~CMD3MeshFileLoader() |
26 | { | 26 | { |
27 | } | 27 | } |
28 | 28 | ||
29 | 29 | ||
30 | //! returns true if the file maybe is able to be loaded by this class | 30 | //! returns true if the file maybe is able to be loaded by this class |
31 | //! based on the file extension (e.g. ".bsp") | 31 | //! based on the file extension (e.g. ".bsp") |
32 | bool CMD3MeshFileLoader::isALoadableFileExtension(const io::path& filename) const | 32 | bool CMD3MeshFileLoader::isALoadableFileExtension(const io::path& filename) const |
33 | { | 33 | { |
34 | return core::hasFileExtension ( filename, "md3" ); | 34 | return core::hasFileExtension ( filename, "md3" ); |
35 | } | 35 | } |
36 | 36 | ||
37 | 37 | ||
38 | IAnimatedMesh* CMD3MeshFileLoader::createMesh(io::IReadFile* file) | 38 | IAnimatedMesh* CMD3MeshFileLoader::createMesh(io::IReadFile* file) |
39 | { | 39 | { |
40 | CAnimatedMeshMD3 * mesh = new CAnimatedMeshMD3(); | 40 | CAnimatedMeshMD3 * mesh = new CAnimatedMeshMD3(); |
41 | 41 | ||
42 | if ( mesh->loadModelFile ( 0, file, SceneManager->getFileSystem(), SceneManager->getVideoDriver() ) ) | 42 | if ( mesh->loadModelFile ( 0, file, SceneManager->getFileSystem(), SceneManager->getVideoDriver() ) ) |
43 | return mesh; | 43 | return mesh; |
44 | 44 | ||
45 | mesh->drop (); | 45 | mesh->drop (); |
46 | return 0; | 46 | return 0; |
47 | } | 47 | } |
48 | 48 | ||
49 | 49 | ||
50 | } // end namespace scene | 50 | } // end namespace scene |
51 | } // end namespace irr | 51 | } // end namespace irr |
52 | 52 | ||
53 | #endif // _IRR_COMPILE_WITH_MD3_LOADER_ | 53 | #endif // _IRR_COMPILE_WITH_MD3_LOADER_ |