Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
nirt::scene::IMeshWriter Class Referenceabstract

Interface for writing meshes. More...

#include <nirtcpp/core/engine/IMeshWriter.hpp>

Inheritance diagram for nirt::scene::IMeshWriter:
Inheritance graph
Collaboration diagram for nirt::scene::IMeshWriter:
Collaboration graph

Public Member Functions

virtual ~IMeshWriter ()
 Destructor.
 
virtual EMESH_WRITER_TYPE getType () const =0
 Get the type of the mesh writer.
 
virtual bool writeMesh (io::IWriteFile *file, scene::IMesh *mesh, s32 flags=EMWF_NONE)=0
 Write a static mesh.
 
- Public Member Functions inherited from nirt::IReferenceCounted
 IReferenceCounted ()
 Constructor.
 
virtual ~IReferenceCounted ()
 Destructor.
 
void grab () const
 Grabs the object. Increments the reference counter by one.
 
bool drop () const
 Drops the object. Decrements the reference counter by one.
 
s32 getReferenceCount () const
 Get the reference count.
 
const c8getDebugName () const
 Returns the debug name of the object.
 

Additional Inherited Members

- Protected Member Functions inherited from nirt::IReferenceCounted
void setDebugName (const c8 *newName)
 Sets the debug name of the object.
 

Detailed Description

Interface for writing meshes.

Member Function Documentation

◆ getType()

virtual EMESH_WRITER_TYPE nirt::scene::IMeshWriter::getType ( ) const
pure virtual

Get the type of the mesh writer.

For own implementations, use MAKE_NIRT_ID as shown in the EMESH_WRITER_TYPE enumeration to return your own unique mesh type id.

Returns
Type of the mesh writer.

◆ writeMesh()

virtual bool nirt::scene::IMeshWriter::writeMesh ( io::IWriteFile file,
scene::IMesh mesh,
s32  flags = EMWF_NONE 
)
pure virtual

Write a static mesh.

Parameters
fileFile handle to write the mesh to.
meshPointer to mesh to be written.
flagsOptional flags to set properties of the writer.
Returns
True if successful

The documentation for this class was generated from the following file:

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print