| 15 | void (*SceneGraph::opaque_geometry_destruction)(void*) = nullptr; |
| 16 | |
| 17 | Ref<SceneGraph::Node> SceneGraph::load(const FileName& filename, const bool singleObject) |
| 18 | { |
| 19 | if (toLowerCase(filename.ext()) == std::string("obj" )) return loadOBJ(filename, false, singleObject); |
| 20 | else if (toLowerCase(filename.ext()) == std::string("ply" )) return loadPLY(filename); |
| 21 | else if (toLowerCase(filename.ext()) == std::string("xml" )) return loadXML(filename); |
| 22 | else if (toLowerCase(filename.ext()) == std::string("scn" )) return loadCorona(filename); |
| 23 | else throw std::runtime_error("unknown scene format: " + filename.ext()); |
| 24 | } |
| 25 | |
| 26 | void SceneGraph::store(Ref<SceneGraph::Node> root, const FileName& filename, bool embedTextures, bool referenceMaterials, bool binaryFormat) |
| 27 | { |
nothing calls this directly
no test coverage detected