aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.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/CSMFMeshFileLoader.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 'libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h134
1 files changed, 67 insertions, 67 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h b/libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h
index 2e87aca..63de66f 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CSMFMeshFileLoader.h
@@ -1,67 +1,67 @@
1// Copyright (C) 2010-2012 Gaz Davidson 1// Copyright (C) 2010-2012 Gaz Davidson
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_SMF_MESH_LOADER_H_INCLUDED__ 5#ifndef __C_SMF_MESH_LOADER_H_INCLUDED__
6#define __C_SMF_MESH_LOADER_H_INCLUDED__ 6#define __C_SMF_MESH_LOADER_H_INCLUDED__
7 7
8#include "IMeshLoader.h" 8#include "IMeshLoader.h"
9#include "SMesh.h" 9#include "SMesh.h"
10 10
11namespace irr 11namespace irr
12{ 12{
13 13
14namespace video 14namespace video
15{ 15{
16 class IVideoDriver; 16 class IVideoDriver;
17} 17}
18 18
19namespace scene 19namespace scene
20{ 20{
21 21
22//! Class which can load 22//! Class which can load
23class CSMFMeshFileLoader : public virtual IMeshLoader 23class CSMFMeshFileLoader : public virtual IMeshLoader
24{ 24{
25public: 25public:
26 26
27 CSMFMeshFileLoader(video::IVideoDriver* driver); 27 CSMFMeshFileLoader(video::IVideoDriver* driver);
28 28
29 //! Returns true if the file might be loaded by this class. 29 //! Returns true if the file might be loaded by this class.
30 virtual bool isALoadableFileExtension(const io::path& filename) const; 30 virtual bool isALoadableFileExtension(const io::path& filename) const;
31 31
32 //! Creates/loads an animated mesh from the file. 32 //! Creates/loads an animated mesh from the file.
33 virtual IAnimatedMesh* createMesh(io::IReadFile* file); 33 virtual IAnimatedMesh* createMesh(io::IReadFile* file);
34private: 34private:
35 35
36 void loadLimb(io::IReadFile* file, scene::SMesh* mesh, const core::matrix4 &parentTransformation); 36 void loadLimb(io::IReadFile* file, scene::SMesh* mesh, const core::matrix4 &parentTransformation);
37 37
38 video::IVideoDriver* Driver; 38 video::IVideoDriver* Driver;
39}; 39};
40 40
41} // end namespace scene 41} // end namespace scene
42 42
43namespace io 43namespace io
44{ 44{
45 class BinaryFile 45 class BinaryFile
46 { 46 {
47 public: 47 public:
48 //! reads most types from the given file, moving the file pointer along 48 //! reads most types from the given file, moving the file pointer along
49 template <class T> 49 template <class T>
50 static void read(io::IReadFile* file, T &out, bool bigEndian=false); 50 static void read(io::IReadFile* file, T &out, bool bigEndian=false);
51 51
52 //! reads a 3d vector from the file, moving the file pointer along 52 //! reads a 3d vector from the file, moving the file pointer along
53 static void read(io::IReadFile* file, core::vector3df &outVector2d, bool bigEndian=false); 53 static void read(io::IReadFile* file, core::vector3df &outVector2d, bool bigEndian=false);
54 54
55 //! reads a 2d vector from the file, moving the file pointer along 55 //! reads a 2d vector from the file, moving the file pointer along
56 static void read(io::IReadFile* file, core::vector2df &outVector2d, bool bigEndian=false); 56 static void read(io::IReadFile* file, core::vector2df &outVector2d, bool bigEndian=false);
57 57
58 //! reads a null terminated string from the file, moving the file pointer along 58 //! reads a null terminated string from the file, moving the file pointer along
59 static void read(io::IReadFile* file, core::stringc &outString, bool bigEndian=false); 59 static void read(io::IReadFile* file, core::stringc &outString, bool bigEndian=false);
60 60
61 }; 61 };
62} 62}
63 63
64} // end namespace irr 64} // end namespace irr
65 65
66#endif // __C_SMF_MESH_LOADER_H_INCLUDED__ 66#endif // __C_SMF_MESH_LOADER_H_INCLUDED__
67 67