aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.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/CSceneLoaderIrr.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/CSceneLoaderIrr.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.h164
1 files changed, 82 insertions, 82 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.h b/libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.h
index f8c9532..4b96ded 100644
--- a/libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.h
+++ b/libraries/irrlicht-1.8/source/Irrlicht/CSceneLoaderIrr.h
@@ -1,82 +1,82 @@
1// Copyright (C) 2010-2012 Nikolaus Gebhardt 1// Copyright (C) 2010-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_SCENE_LOADER_IRR_H_INCLUDED__ 5#ifndef __C_SCENE_LOADER_IRR_H_INCLUDED__
6#define __C_SCENE_LOADER_IRR_H_INCLUDED__ 6#define __C_SCENE_LOADER_IRR_H_INCLUDED__
7 7
8#include "ISceneLoader.h" 8#include "ISceneLoader.h"
9 9
10#include "IXMLReader.h" 10#include "IXMLReader.h"
11 11
12namespace irr 12namespace irr
13{ 13{
14 14
15namespace io 15namespace io
16{ 16{
17 class IFileSystem; 17 class IFileSystem;
18} 18}
19 19
20namespace scene 20namespace scene
21{ 21{
22 22
23class ISceneManager; 23class ISceneManager;
24 24
25//! Class which can load a scene into the scene manager. 25//! Class which can load a scene into the scene manager.
26class CSceneLoaderIrr : public virtual ISceneLoader 26class CSceneLoaderIrr : public virtual ISceneLoader
27{ 27{
28public: 28public:
29 29
30 //! Constructor 30 //! Constructor
31 CSceneLoaderIrr(ISceneManager *smgr, io::IFileSystem* fs); 31 CSceneLoaderIrr(ISceneManager *smgr, io::IFileSystem* fs);
32 32
33 //! Destructor 33 //! Destructor
34 virtual ~CSceneLoaderIrr(); 34 virtual ~CSceneLoaderIrr();
35 35
36 //! Returns true if the class might be able to load this file. 36 //! Returns true if the class might be able to load this file.
37 virtual bool isALoadableFileExtension(const io::path& filename) const; 37 virtual bool isALoadableFileExtension(const io::path& filename) const;
38 38
39 //! Returns true if the class might be able to load this file. 39 //! Returns true if the class might be able to load this file.
40 virtual bool isALoadableFileFormat(io::IReadFile *file) const; 40 virtual bool isALoadableFileFormat(io::IReadFile *file) const;
41 41
42 //! Loads the scene into the scene manager. 42 //! Loads the scene into the scene manager.
43 virtual bool loadScene(io::IReadFile* file, ISceneUserDataSerializer* userDataSerializer=0, 43 virtual bool loadScene(io::IReadFile* file, ISceneUserDataSerializer* userDataSerializer=0,
44 ISceneNode* rootNode=0); 44 ISceneNode* rootNode=0);
45 45
46private: 46private:
47 47
48 //! Recursively reads nodes from the xml file 48 //! Recursively reads nodes from the xml file
49 void readSceneNode(io::IXMLReader* reader, ISceneNode* parent, 49 void readSceneNode(io::IXMLReader* reader, ISceneNode* parent,
50 ISceneUserDataSerializer* userDataSerializer); 50 ISceneUserDataSerializer* userDataSerializer);
51 51
52 //! read a node's materials 52 //! read a node's materials
53 void readMaterials(io::IXMLReader* reader, ISceneNode* node); 53 void readMaterials(io::IXMLReader* reader, ISceneNode* node);
54 54
55 //! read a node's animators 55 //! read a node's animators
56 void readAnimators(io::IXMLReader* reader, ISceneNode* node); 56 void readAnimators(io::IXMLReader* reader, ISceneNode* node);
57 57
58 //! read any other data into the user serializer 58 //! read any other data into the user serializer
59 void readUserData(io::IXMLReader* reader, ISceneNode* node, 59 void readUserData(io::IXMLReader* reader, ISceneNode* node,
60 ISceneUserDataSerializer* userDataSerializer); 60 ISceneUserDataSerializer* userDataSerializer);
61 61
62 ISceneManager *SceneManager; 62 ISceneManager *SceneManager;
63 io::IFileSystem *FileSystem; 63 io::IFileSystem *FileSystem;
64 64
65 //! constants for reading and writing XML. 65 //! constants for reading and writing XML.
66 //! Not made static due to portability problems. 66 //! Not made static due to portability problems.
67 // TODO: move to own header 67 // TODO: move to own header
68 const core::stringw IRR_XML_FORMAT_SCENE; 68 const core::stringw IRR_XML_FORMAT_SCENE;
69 const core::stringw IRR_XML_FORMAT_NODE; 69 const core::stringw IRR_XML_FORMAT_NODE;
70 const core::stringw IRR_XML_FORMAT_NODE_ATTR_TYPE; 70 const core::stringw IRR_XML_FORMAT_NODE_ATTR_TYPE;
71 const core::stringw IRR_XML_FORMAT_ATTRIBUTES; 71 const core::stringw IRR_XML_FORMAT_ATTRIBUTES;
72 const core::stringw IRR_XML_FORMAT_MATERIALS; 72 const core::stringw IRR_XML_FORMAT_MATERIALS;
73 const core::stringw IRR_XML_FORMAT_ANIMATORS; 73 const core::stringw IRR_XML_FORMAT_ANIMATORS;
74 const core::stringw IRR_XML_FORMAT_USERDATA; 74 const core::stringw IRR_XML_FORMAT_USERDATA;
75}; 75};
76 76
77 77
78} // end namespace scene 78} // end namespace scene
79} // end namespace irr 79} // end namespace irr
80 80
81#endif 81#endif
82 82