MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/MaterialX / loadLibrary

Function loadLibrary

source/MaterialXFormat/Util.cpp:80–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void loadLibrary(const FilePath& file, DocumentPtr doc, const FileSearchPath& searchPath, const XmlReadOptions* readOptions)
81{
82 DocumentPtr libDoc = createDocument();
83 readFromXmlFile(libDoc, file, searchPath, readOptions);
84 doc->importLibrary(libDoc);
85}
86
87StringSet loadLibraries(const FilePathVec& libraryFolders,
88 const FileSearchPath& searchPath,

Callers 7

loadLibrariesFunction · 0.85

Calls 3

readFromXmlFileFunction · 0.85
importLibraryMethod · 0.80
createDocumentFunction · 0.50

Tested by

no test coverage detected