MCPcopy Create free account
hub / github.com/Prograda/Skybolt / locateFile

Function locateFile

src/Skybolt/SkyboltEngine/EngineRoot.cpp:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37Expected<file::Path> locateFile(const std::string& filename)
38{
39 auto resolvedFilename = osgDB::Registry::instance()->findDataFile(filename, nullptr, osgDB::CASE_SENSITIVE);
40 if (resolvedFilename.empty())
41 {
42 return UnexpectedMessage{ "Could not locate file: " + filename };
43 }
44 return resolvedFilename;
45};
46
47static std::vector<std::string> transparentMaterialNames() { return { "transparentExt", "transparent" }; } //@deprecated. Set osg::Material diffuse alpha < 1 instead to treat geometry as transparent.
48

Callers 1

createIconFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected