![]() |
Duckcpp 2.1.0
Duckcpp is a high-performance c++ graphics engine.
|
Interface for writing meshes. More...
#include <duckcpp/core/engine/IMeshWriter.hpp>


Public Member Functions | |
| virtual | ~IMeshWriter () |
| Destructor. | |
| virtual EMESH_WRITER_TYPE | getType () const =0 |
| Get the type of the mesh writer. | |
| virtual bool | writeMesh (dcpp::io::IWriteFile *file, dcpp::scene::IMesh *mesh, dcpp::int32_kt flags=EMWF_NONE)=0 |
| Write a static mesh. | |
Public Member Functions inherited from dcpp::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. | |
| dcpp::int32_kt | getReferenceCount () const |
| Get the reference count. | |
| const dcpp::char_kt * | getDebugName () const |
| Returns the debug name of the object. | |
Additional Inherited Members | |
Protected Member Functions inherited from dcpp::IReferenceCounted | |
| void | setDebugName (const dcpp::char_kt *newName) |
| Sets the debug name of the object. | |
Interface for writing meshes.
|
pure virtual |
Get the type of the mesh writer.
For own implementations, use MAKE_DCPP_ID as shown in the EMESH_WRITER_TYPE enumeration to return your own unique mesh type id.
|
pure virtual |
Write a static mesh.
| file | File handle to write the mesh to. |
| mesh | Pointer to mesh to be written. |
| flags | Optional flags to set properties of the writer. |