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& ) |
#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)
#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 ); }; |
using MR::MeshLoad::MeshFileLoader = Expected<MR::Mesh>( * )( const std::filesystem::path&, const MeshLoadSettings& ) |
using MR::MeshLoad::MeshStreamLoader = Expected<MR::Mesh>( * )( std::istream&, const MeshLoadSettings& ) |