| 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 | { |