![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <mdl_writer.hpp>
Public Member Functions | |
| MDLWriter (const ModelOutput< VertexT, IndexT > &model_output) | |
| MDLWriter (const MDLWriter &writer)=delete | |
| MDLWriter (MDLWriter &&writer) noexcept | |
| ~MDLWriter () | |
| MDLWriter & | operator= (const MDLWriter &writer)=delete |
| MDLWriter & | operator= (MDLWriter &&writer)=delete |
| void | WriteToFile (std::filesystem::path path) |
Private Member Functions | |
| virtual void | Write () override |
| void | ExportMesh () |
| void | WriteMaterials () |
| void | WriteModelParts () |
Private Member Functions inherited from mage::Writer | |
| Writer & | operator= (const Writer &writer)=delete |
| Writer & | operator= (Writer &&writer) noexcept |
| void | WriteToFile (std::filesystem::path path) |
| Writer () | |
| Writer (const Writer &writer)=delete | |
| Writer (Writer &&writer) noexcept | |
| ~Writer () | |
| const std::filesystem::path & | GetPath () const noexcept |
| void | WriteCharacter (char c) |
| void | WriteString (NotNull< const_zstring > str) |
| void | WriteStringLine (NotNull< const_zstring > str) |
Private Attributes | |
| const ModelOutput< VertexT, IndexT > & | m_model_output |
A class of MDL file writers for writing models.
| VertexT | The vertex type. |
| IndexT | The index type. |
|
explicit |
Constructs a MDL writer.
| [in,out] | model_output | A reference to the model output containing the model data. |
|
delete |
Constructs a MDL writer from the given MDL writer.
| [in] | writer | A reference to the MDL writer to copy. |
|
noexcept |
Constructs a MDL writer by moving the given MDL writer.
| [in] | writer | A reference to the MDL writer to move. |
| mage::rendering::loader::MDLWriter< VertexT, IndexT >::~MDLWriter | ( | ) |
Destructs this MDL writer.
|
private |
|
delete |
Copies the given MDL writer to this MDL writer.
| [in] | writer | A reference to a MDL writer to copy. |
|
delete |
Moves the given MDL writer to this MDL writer.
| [in] | writer | A reference to a MDL writer to move. |
|
overrideprivatevirtual |
|
private |
Writes the materials corresponding to the model.
| Exception | Failed to write. |
|
private |
Writes the model parts corresponding to the model.
| Exception | Failed to write. |
| void mage::Writer::WriteToFile |
Writes to the file associated with the given path.
| [in] | path | The path. |
| Exception | Failed to write to the file. |
|
private |
A reference to the model output containing the model data of this MDL writer.