42 lines
715 B
C++
42 lines
715 B
C++
#include "assets/data_loaders/mesh_loader.hpp"
|
|
|
|
std::error_code assets::mesh_loader::prefetch(
|
|
loader_id_type loader_id,
|
|
const ztu::string_list& directories,
|
|
prefetch_queue& queue
|
|
) {
|
|
return this->invoke_with_matching_loader(
|
|
loader_id,
|
|
[&](auto& loader)
|
|
{
|
|
return loader.prefetch(
|
|
directories,
|
|
queue
|
|
);
|
|
}
|
|
);
|
|
}
|
|
|
|
std::error_code assets::mesh_loader::load(
|
|
loader_id_type loader_id,
|
|
const ztu::string_list& directories,
|
|
mesh_store& store,
|
|
mesh_prefetch_lookup& id_lookup,
|
|
const bool pedantic
|
|
) {
|
|
return this->invoke_with_matching_loader(
|
|
loader_id,
|
|
[&](auto& loader)
|
|
{
|
|
return loader.load(
|
|
m_buffer,
|
|
directories,
|
|
store,
|
|
id_lookup,
|
|
pedantic
|
|
);
|
|
}
|
|
);
|
|
}
|
|
|