MeshLib Documentation
Loading...
Searching...
No Matches
IO Formats Registry

Classes

struct  MR::MeshLoad::MeshLoader
 

Macros

#define MR_ADD_MESH_LOADER(filter, loader)   MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) } ); };
 Register filter with loader function.
 
#define MR_ADD_MESH_LOADER_WITH_PRIORITY(filter, loader, priority)   MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) }, priority ); };
 

Typedefs

using MR::MeshLoad::MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& )
 
using MR::MeshLoad::MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& )
 

Detailed Description

Macro Definition Documentation

◆ MR_ADD_MESH_LOADER

#define MR_ADD_MESH_LOADER ( filter,
loader )   MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) } ); };

Register filter with loader function.

loader function signature: Expected<Mesh> fromFormat( const std::filesystem::path& path, const MeshLoadSettings& settings ); example: MR_ADD_MESH_LOADER( IOFilter("Name of filter (.ext)","*.ext"), fromFormat)

◆ MR_ADD_MESH_LOADER_WITH_PRIORITY

#define MR_ADD_MESH_LOADER_WITH_PRIORITY ( filter,
loader,
priority )   MR_ON_INIT { using namespace MR::MeshLoad; setMeshLoader( filter, { static_cast<MeshFileLoader>( loader ), static_cast<MeshStreamLoader>( loader ) }, priority ); };

Typedef Documentation

◆ MeshFileLoader

using MR::MeshLoad::MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& )

◆ MeshStreamLoader

using MR::MeshLoad::MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& )