MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ make_default_resolver()

TextureResolver MayaFlux::IO::Detail::make_default_resolver ( const std::string &  filepath)

Definition at line 90 of file IOTransitions.cpp.

91{
92 const auto base_dir = std::filesystem::path(filepath).parent_path();
93 return [base_dir](const std::string& raw) -> std::shared_ptr<Core::VKImage> {
94 auto tex_path = FileReader::resolve_path((base_dir / raw).generic_string());
95 return IO::ImageReader::load_texture(tex_path);
96 };
97}

References MayaFlux::IO::ImageReader::load_texture(), and MayaFlux::IO::FileReader::resolve_path().

Referenced by MayaFlux::IO::IOManager::load_mesh(), and MayaFlux::IO::IOManager::load_mesh_network().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: