- add_type<GL::Material>().creator(&Catalogue3D::create<GL::Material>);
- add_type<GL::Mesh>().creator(&Catalogue3D::create<GL::Mesh>);
- add_type<GL::Object>().creator(&Catalogue3D::create<GL::Object>);
- add_type<GL::Program>().creator(&Catalogue3D::create<GL::Program>);
- add_type<GL::Technique>().creator(&Catalogue3D::create<GL::Technique>);
+ const list<DataFile::CollectionSource *> &src = catalogue.get_sources();
+ for(list<DataFile::CollectionSource *>::const_iterator i=src.begin(); i!=src.end(); ++i)
+ add_source(**i);
+ catalogue.signal_source_added.connect(sigc::mem_fun(static_cast<DataFile::Collection *>(this), &Catalogue3D::add_source));