![]() |
MAGE
v0.171.0
Matthias Advanced Game Engine
|
#include <msh_writer.hpp>
Public Member Functions | |
MSHWriter (const std::vector< VertexT > &vertices, const std::vector< IndexT > &indices) | |
MSHWriter (const MSHWriter &writer)=delete | |
MSHWriter (MSHWriter &&writer) noexcept | |
~MSHWriter () | |
MSHWriter & | operator= (const MSHWriter &writer)=delete |
MSHWriter & | operator= (MSHWriter &&writer)=delete |
void | WriteToFile (std::filesystem::path path) |
Private Member Functions | |
virtual void | WriteData () override |
![]() | |
BigEndianBinaryWriter & | operator= (const BigEndianBinaryWriter &writer)=delete |
BigEndianBinaryWriter & | operator= (BigEndianBinaryWriter &&writer) noexcept |
void | WriteToFile (std::filesystem::path path) |
BigEndianBinaryWriter () | |
BigEndianBinaryWriter (const BigEndianBinaryWriter &writer)=delete | |
BigEndianBinaryWriter (BigEndianBinaryWriter &&writer) noexcept | |
~BigEndianBinaryWriter () | |
const std::filesystem::path & | GetPath () const noexcept |
template<typename T > | |
void | Write (const T &data) |
template<typename T > | |
void | WriteArray (gsl::span< const T > data) |
void | WriteCharacter (char c) |
void | WriteString (NotNull< const_zstring > str) |
Private Attributes | |
const std::vector< VertexT > & | m_vertices |
const std::vector< IndexT > & | m_indices |
A class of MSH file writers for writing meshes.
VertexT | The vertex type. |
IndexT | The index type. |
|
explicit |
Constructs a MSH writer.
[in] | vertices | A reference to a vector containing the vertices. |
[in] | indices | A reference to a vector containing the indices. |
|
delete |
Constructs a MSH writer from the given MSH writer.
[in] | writer | A reference to the MSH writer to copy. |
|
noexcept |
Constructs a MSH writer by moving the given MSH writer.
[in] | writer | A reference to the MSH writer to move. |
mage::rendering::loader::MSHWriter< VertexT, IndexT >::~MSHWriter | ( | ) |
Destructs this MSH writer.
|
delete |
Copies the given MSH writer to this MSH writer.
[in] | writer | A reference to a MSH writer to copy. |
|
delete |
Moves the given MSH writer to this MSH writer.
[in] | writer | A reference to a MSH writer to move. |
|
overrideprivatevirtual |
void mage::BigEndianBinaryWriter::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 a vector containing the indices to write by this VS writer.
|
private |
A reference to a vector containing the vertices to write by this VS writer.