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

Method loadObject

tutorials/common/scenegraph/corona_loader.cpp:202–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200 }
201
202 Ref<SceneGraph::Node> CoronaLoader::loadObject(const Ref<XML>& xml)
203 {
204 if (xml->name != "object")
205 THROW_RUNTIME_ERROR(xml->loc.str()+": invalid object node");
206 if (xml->parm("class") != "file")
207 THROW_RUNTIME_ERROR(xml->loc.str()+": invalid object class");
208 const FileName fileName = load<FileName>(xml);
209 return SceneGraph::load(path+fileName);
210 }
211
212 std::pair<Ref<SceneGraph::MaterialNode>, avector<AffineSpace3fa> > CoronaLoader::loadInstances(const Ref<XML>& xml)
213 {

Callers

nothing calls this directly

Calls 3

parmMethod · 0.80
loadFunction · 0.50
strMethod · 0.45

Tested by

no test coverage detected