-template<typename T>
-void Scene::GenericLoader::CreateScene<T>::operator()(const std::string &, GenericLoader &ldr) const
-{
- if(ldr.scene)
- throw std::logic_error("Scene type was already specified");
-
- T *scene = new T;
- ldr.scene = scene;
- ldr.scene_loader = new typename T::Loader(*scene, ldr.coll);
- ldr.add_auxiliary_loader(*ldr.scene_loader);
-}
-