Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IMeshWriter.hpp
1// Copyright (C) 2002-2012 Nikolaus Gebhardt
2// This file is part of the "Irrlicht Engine".
3// For conditions of distribution and use, see copyright notice in nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_MESH_WRITER_HPP_INCLUDED
6#define NIRT_I_MESH_WRITER_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IReferenceCounted.hpp>
9#include <nirtcpp/core/engine/EMeshWriterEnums.hpp>
10
11namespace nirt
12{
13namespace io
14{
15 class IWriteFile;
16} // end namespace io
17
18namespace scene
19{
20 class IMesh;
21
23 class IMeshWriter : public virtual IReferenceCounted
24 {
25 public:
26
28 virtual ~IMeshWriter() {}
29
31
35 virtual EMESH_WRITER_TYPE getType() const = 0;
36
38
42 virtual bool writeMesh(io::IWriteFile* file, scene::IMesh* mesh,
43 s32 flags=EMWF_NONE) = 0;
44
45 // Writes an animated mesh
46 // for future use, only b3d writer is able to write animated meshes currently and that was implemented using the writeMesh above.
47 /* \return Returns true if successful */
48 //virtual bool writeAnimatedMesh(io::IWriteFile* file,
49 // scene::IAnimatedMesh* mesh,
50 // s32 flags=EMWF_NONE) = 0;
51 };
52
53
54} // end namespace
55} // end namespace
56
57#endif
Base class of most objects of the Nirtcpp Engine.
Definition IReferenceCounted.hpp:46
Interface providing write access to a file.
Definition IWriteFile.hpp:18
Interface for writing meshes.
Definition IMeshWriter.hpp:24
virtual ~IMeshWriter()
Destructor.
Definition IMeshWriter.hpp:28
virtual bool writeMesh(io::IWriteFile *file, scene::IMesh *mesh, s32 flags=EMWF_NONE)=0
Write a static mesh.
virtual EMESH_WRITER_TYPE getType() const =0
Get the type of the mesh writer.
Class which holds the geometry of an object.
Definition IMesh.hpp:72
EMESH_WRITER_TYPE
An enumeration for all supported types of built-in mesh writers.
Definition EMeshWriterEnums.hpp:20
@ EMWF_NONE
no writer flags
Definition EMeshWriterEnums.hpp:45
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print