1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\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 // I (Nikolaus Gebhardt) did some few changes to Jonas Petersen's original loader:
\r
6 // - removed setTexturePath() and replaced with the ISceneManager::getStringParameter()-stuff.
\r
7 // - added EAMT_LMTS enumeration value
\r
8 // Thanks a lot to Jonas Petersen for his work
\r
9 // on this and that he gave me his permission to add it into Irrlicht.
\r
12 CLMTSMeshFileLoader.h
\r
15 Written by Jonas Petersen (a.k.a. jox)
\r
17 Version 1.5 - 15 March 2005
\r
21 #if !defined(__C_LMTS_MESH_FILE_LOADER_H_INCLUDED__)
\r
22 #define __C_LMTS_MESH_FILE_LOADER_H_INCLUDED__
\r
24 #include "IMeshLoader.h"
\r
26 #include "IFileSystem.h"
\r
27 #include "IVideoDriver.h"
\r
34 class CLMTSMeshFileLoader : public IMeshLoader
\r
38 CLMTSMeshFileLoader(io::IFileSystem* fs,
\r
39 video::IVideoDriver* driver, io::IAttributes* parameters);
\r
41 virtual ~CLMTSMeshFileLoader();
\r
43 virtual bool isALoadableFileExtension(const io::path& filename) const _IRR_OVERRIDE_;
\r
45 virtual IAnimatedMesh* createMesh(io::IReadFile* file) _IRR_OVERRIDE_;
\r
48 void constructMesh(SMesh* mesh);
\r
49 void loadTextures(SMesh* mesh);
\r
52 // byte-align structures
\r
53 #include "irrpack.h"
\r
67 struct SLMTSTextureInfoEntry
\r
73 struct SLMTSSubsetInfoEntry
\r
81 struct SLMTSTriangleDataEntry
\r
92 // Default alignment
\r
93 #include "irrunpack.h"
\r
96 SLMTSTextureInfoEntry* Textures;
\r
97 SLMTSSubsetInfoEntry* Subsets;
\r
98 SLMTSTriangleDataEntry* Triangles;
\r
100 io::IAttributes* Parameters;
\r
101 video::IVideoDriver* Driver;
\r
102 io::IFileSystem* FileSystem;
\r
103 bool FlipEndianess;
\r
106 } // end namespace scene
\r
107 } // end namespace irr
\r
109 #endif // !defined(__C_LMTS_MESH_FILE_LOADER_H_INCLUDED__)
\r