MCPcopy Create free account
hub / github.com/RenderKit/embree / loadMaterialDefinition

Method loadMaterialDefinition

tutorials/common/scenegraph/corona_loader.cpp:125–134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 }
124
125 void CoronaLoader::loadMaterialDefinition(const Ref<XML>& xml)
126 {
127 if (xml->name != "materialDefinition")
128 THROW_RUNTIME_ERROR(xml->loc.str()+": invalid material definition: "+xml->name);
129 if (xml->children.size() != 1)
130 THROW_RUNTIME_ERROR(xml->loc.str()+": invalid material definition");
131
132 const std::string name = xml->parm("name");
133 materialMap[name] = loadMaterial(xml->children[0]);
134 }
135
136 std::shared_ptr<Texture> CoronaLoader::loadMap(const Ref<XML>& xml)
137 {

Callers

nothing calls this directly

Calls 3

parmMethod · 0.80
strMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected