diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h b/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h index 34b9108..eb86096 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h | |||
@@ -1,58 +1,58 @@ | |||
1 | // Copyright (C) 2008-2012 Christian Stehno | 1 | // Copyright (C) 2008-2012 Christian Stehno |
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 __IRR_OBJ_MESH_WRITER_H_INCLUDED__ | 5 | #ifndef __IRR_OBJ_MESH_WRITER_H_INCLUDED__ |
6 | #define __IRR_OBJ_MESH_WRITER_H_INCLUDED__ | 6 | #define __IRR_OBJ_MESH_WRITER_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IMeshWriter.h" | 8 | #include "IMeshWriter.h" |
9 | #include "S3DVertex.h" | 9 | #include "S3DVertex.h" |
10 | #include "irrString.h" | 10 | #include "irrString.h" |
11 | 11 | ||
12 | namespace irr | 12 | namespace irr |
13 | { | 13 | { |
14 | namespace io | 14 | namespace io |
15 | { | 15 | { |
16 | class IFileSystem; | 16 | class IFileSystem; |
17 | } // end namespace io | 17 | } // end namespace io |
18 | namespace scene | 18 | namespace scene |
19 | { | 19 | { |
20 | class IMeshBuffer; | 20 | class IMeshBuffer; |
21 | class ISceneManager; | 21 | class ISceneManager; |
22 | 22 | ||
23 | //! class to write meshes, implementing a OBJ writer | 23 | //! class to write meshes, implementing a OBJ writer |
24 | class COBJMeshWriter : public IMeshWriter | 24 | class COBJMeshWriter : public IMeshWriter |
25 | { | 25 | { |
26 | public: | 26 | public: |
27 | 27 | ||
28 | COBJMeshWriter(scene::ISceneManager* smgr, io::IFileSystem* fs); | 28 | COBJMeshWriter(scene::ISceneManager* smgr, io::IFileSystem* fs); |
29 | virtual ~COBJMeshWriter(); | 29 | virtual ~COBJMeshWriter(); |
30 | 30 | ||
31 | //! Returns the type of the mesh writer | 31 | //! Returns the type of the mesh writer |
32 | virtual EMESH_WRITER_TYPE getType() const; | 32 | virtual EMESH_WRITER_TYPE getType() const; |
33 | 33 | ||
34 | //! writes a mesh | 34 | //! writes a mesh |
35 | virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE); | 35 | virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh, s32 flags=EMWF_NONE); |
36 | 36 | ||
37 | protected: | 37 | protected: |
38 | // create vector output with line end into string | 38 | // create vector output with line end into string |
39 | void getVectorAsStringLine(const core::vector3df& v, | 39 | void getVectorAsStringLine(const core::vector3df& v, |
40 | core::stringc& s) const; | 40 | core::stringc& s) const; |
41 | 41 | ||
42 | // create vector output with line end into string | 42 | // create vector output with line end into string |
43 | void getVectorAsStringLine(const core::vector2df& v, | 43 | void getVectorAsStringLine(const core::vector2df& v, |
44 | core::stringc& s) const; | 44 | core::stringc& s) const; |
45 | 45 | ||
46 | // create color output with line end into string | 46 | // create color output with line end into string |
47 | void getColorAsStringLine(const video::SColor& color, | 47 | void getColorAsStringLine(const video::SColor& color, |
48 | const c8* const prefix, core::stringc& s) const; | 48 | const c8* const prefix, core::stringc& s) const; |
49 | 49 | ||
50 | scene::ISceneManager* SceneManager; | 50 | scene::ISceneManager* SceneManager; |
51 | io::IFileSystem* FileSystem; | 51 | io::IFileSystem* FileSystem; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | } // end namespace | 54 | } // end namespace |
55 | } // end namespace | 55 | } // end namespace |
56 | 56 | ||
57 | #endif | 57 | #endif |
58 | 58 | ||