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