aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2013-01-13 17:24:39 +1000
committerDavid Walter Seikel2013-01-13 17:24:39 +1000
commit393b5cd1dc438872af89d334ef6e5fcc59f27d47 (patch)
tree6a14521219942a08a1b95cb2f5a923a9edd60f63 /libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h
parentAdd a note about rasters suggested start up code. (diff)
downloadSledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.zip
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.gz
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.bz2
SledjHamr-393b5cd1dc438872af89d334ef6e5fcc59f27d47.tar.xz
Added Irrlicht 1.8, but without all the Windows binaries.
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h')
-rw-r--r--libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h58
1 files changed, 58 insertions, 0 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h b/libraries/irrlicht-1.8/source/Irrlicht/COBJMeshWriter.h
new file mode 100644
index 0000000..34b9108
--- /dev/null
+++ b/libraries/irrlicht-1.8/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