Loading...
Searching...
No Matches
hellfire::MeshSerializer Class Reference

#include <MeshSerializer.h>

Collaboration diagram for hellfire::MeshSerializer:

Static Public Member Functions

static bool save (const std::filesystem::path &filepath, const Mesh &mesh)
 
static std::shared_ptr< Meshload (const std::filesystem::path &filepath)
 
static bool save_json (const std::filesystem::path &filepath, const Mesh &mesh)
 
static std::shared_ptr< Meshload_json (const std::filesystem::path &filepath)
 

Static Public Attributes

static constexpr uint32_t MAGIC = 0x4853454D
 
static constexpr uint32_t VERSION = 1
 

Detailed Description

Definition at line 13 of file MeshSerializer.h.

Member Function Documentation

◆ load()

std::shared_ptr< Mesh > hellfire::MeshSerializer::load ( const std::filesystem::path &  filepath)
static

Definition at line 37 of file MeshSerializer.cpp.

◆ load_json()

std::shared_ptr< Mesh > hellfire::MeshSerializer::load_json ( const std::filesystem::path &  filepath)
static

Definition at line 99 of file MeshSerializer.cpp.

◆ save()

bool hellfire::MeshSerializer::save ( const std::filesystem::path &  filepath,
const Mesh mesh 
)
static

Definition at line 13 of file MeshSerializer.cpp.

◆ save_json()

bool hellfire::MeshSerializer::save_json ( const std::filesystem::path &  filepath,
const Mesh mesh 
)
static

Definition at line 72 of file MeshSerializer.cpp.

Member Data Documentation

◆ MAGIC

constexpr uint32_t hellfire::MeshSerializer::MAGIC = 0x4853454D
staticconstexpr

Definition at line 15 of file MeshSerializer.h.

◆ VERSION

constexpr uint32_t hellfire::MeshSerializer::VERSION = 1
staticconstexpr

Definition at line 16 of file MeshSerializer.h.


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