aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 18:54:10 +1000
committerDavid Walter Seikel2013-01-13 18:54:10 +1000
commit959831f4ef5a3e797f576c3de08cd65032c997ad (patch)
treee7351908be5995f0b325b2ebeaa02d5a34b82583 /libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h
parentAdd info about changes to Irrlicht. (diff)
downloadSledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.zip
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.gz
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.bz2
SledjHamr-959831f4ef5a3e797f576c3de08cd65032c997ad.tar.xz
Remove damned ancient DOS line endings from Irrlicht. Hopefully I did not go overboard.
Diffstat (limited to '')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h174
1 files changed, 87 insertions, 87 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h b/libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h
index c72d666..478bc1f 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CLWOMeshFileLoader.h
@@ -1,87 +1,87 @@
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#ifndef __C_LWO_MESH_FILE_LOADER_H_INCLUDED__ 5#ifndef __C_LWO_MESH_FILE_LOADER_H_INCLUDED__
6#define __C_LWO_MESH_FILE_LOADER_H_INCLUDED__ 6#define __C_LWO_MESH_FILE_LOADER_H_INCLUDED__
7 7
8#include "IMeshLoader.h" 8#include "IMeshLoader.h"
9#include "SMeshBuffer.h" 9#include "SMeshBuffer.h"
10#include "irrString.h" 10#include "irrString.h"
11 11
12namespace irr 12namespace irr
13{ 13{
14namespace io 14namespace io
15{ 15{
16 class IReadFile; 16 class IReadFile;
17 class IFileSystem; 17 class IFileSystem;
18} // end namespace io 18} // end namespace io
19namespace scene 19namespace scene
20{ 20{
21 21
22 struct SMesh; 22 struct SMesh;
23 class ISceneManager; 23 class ISceneManager;
24 24
25//! Meshloader capable of loading Lightwave 3D meshes. 25//! Meshloader capable of loading Lightwave 3D meshes.
26class CLWOMeshFileLoader : public IMeshLoader 26class CLWOMeshFileLoader : public IMeshLoader
27{ 27{
28public: 28public:
29 29
30 //! Constructor 30 //! Constructor
31 CLWOMeshFileLoader(scene::ISceneManager* smgr, io::IFileSystem* fs); 31 CLWOMeshFileLoader(scene::ISceneManager* smgr, io::IFileSystem* fs);
32 32
33 //! destructor 33 //! destructor
34 virtual ~CLWOMeshFileLoader(); 34 virtual ~CLWOMeshFileLoader();
35 35
36 //! returns true if the file maybe is able to be loaded by this class 36 //! returns true if the file maybe is able to be loaded by this class
37 //! based on the file extension (e.g. ".bsp") 37 //! based on the file extension (e.g. ".bsp")
38 virtual bool isALoadableFileExtension(const io::path& filename) const; 38 virtual bool isALoadableFileExtension(const io::path& filename) const;
39 39
40 //! creates/loads an animated mesh from the file. 40 //! creates/loads an animated mesh from the file.
41 //! \return Pointer to the created mesh. Returns 0 if loading failed. 41 //! \return Pointer to the created mesh. Returns 0 if loading failed.
42 //! If you no longer need the mesh, you should call IAnimatedMesh::drop(). 42 //! If you no longer need the mesh, you should call IAnimatedMesh::drop().
43 //! See IUnknown::drop() for more information. 43 //! See IUnknown::drop() for more information.
44 virtual IAnimatedMesh* createMesh(io::IReadFile* file); 44 virtual IAnimatedMesh* createMesh(io::IReadFile* file);
45 45
46private: 46private:
47 47
48 struct tLWOMaterial; 48 struct tLWOMaterial;
49 49
50 bool readFileHeader(); 50 bool readFileHeader();
51 bool readChunks(); 51 bool readChunks();
52 void readObj1(u32 size); 52 void readObj1(u32 size);
53 void readTagMapping(u32 size); 53 void readTagMapping(u32 size);
54 void readVertexMapping(u32 size); 54 void readVertexMapping(u32 size);
55 void readDiscVertexMapping (u32 size); 55 void readDiscVertexMapping (u32 size);
56 void readObj2(u32 size); 56 void readObj2(u32 size);
57 void readMat(u32 size); 57 void readMat(u32 size);
58 u32 readString(core::stringc& name, u32 size=0); 58 u32 readString(core::stringc& name, u32 size=0);
59 u32 readVec(core::vector3df& vec); 59 u32 readVec(core::vector3df& vec);
60 u32 readVX(u32& num); 60 u32 readVX(u32& num);
61 u32 readColor(video::SColor& color); 61 u32 readColor(video::SColor& color);
62 video::ITexture* loadTexture(const core::stringc& file); 62 video::ITexture* loadTexture(const core::stringc& file);
63 63
64 scene::ISceneManager* SceneManager; 64 scene::ISceneManager* SceneManager;
65 io::IFileSystem* FileSystem; 65 io::IFileSystem* FileSystem;
66 io::IReadFile* File; 66 io::IReadFile* File;
67 SMesh* Mesh; 67 SMesh* Mesh;
68 68
69 core::array<core::vector3df> Points; 69 core::array<core::vector3df> Points;
70 core::array<core::array<u32> > Indices; 70 core::array<core::array<u32> > Indices;
71 core::array<core::stringc> UvName; 71 core::array<core::stringc> UvName;
72 core::array<core::array<u32> > UvIndex; 72 core::array<core::array<u32> > UvIndex;
73 core::array<core::stringc> DUvName; 73 core::array<core::stringc> DUvName;
74 core::array<core::array<u32> > VmPolyPointsIndex; 74 core::array<core::array<u32> > VmPolyPointsIndex;
75 core::array<core::array<core::vector2df> > VmCoordsIndex; 75 core::array<core::array<core::vector2df> > VmCoordsIndex;
76 76
77 core::array<u16> MaterialMapping; 77 core::array<u16> MaterialMapping;
78 core::array<core::array<core::vector2df> > TCoords; 78 core::array<core::array<core::vector2df> > TCoords;
79 core::array<tLWOMaterial*> Materials; 79 core::array<tLWOMaterial*> Materials;
80 core::array<core::stringc> Images; 80 core::array<core::stringc> Images;
81 u8 FormatVersion; 81 u8 FormatVersion;
82}; 82};
83 83
84} // end namespace scene 84} // end namespace scene
85} // end namespace irr 85} // end namespace irr
86 86
87#endif 87#endif