Function Kataglyphis::resolveObjTexturePath#
Defined in File ObjLoader.ixx
Function Documentation#
-
std::string Kataglyphis::resolveObjTexturePath(const std::string &baseDir, const std::string &mapKd)#
docs/model-loading.md’s map_Kd resolution rule: normalise
\\endiskipto/(a Windows-authored .mtl must still resolve when the path is otherwise portable), then try<baseDir>/<mapKd>beside the .mtl, then<baseDir>/textures/<mapKd>; on neither existing, return the beside-the- .mtl candidate and let the caller warn. Free (not a method) so parseCpu’s tests can call it without constructing a device-owning loader. An empty baseDir is treated as “.” so the candidates stay relative instead of becoming filesystem-root paths.