catalogue(c),
endpoint_mesh((GL::NORMAL3, GL::VERTEX3))
{
- add_creator<GL::Material>(&Catalogue3D::create<GL::Material>);
- add_creator<GL::Mesh>(&Catalogue3D::create<GL::Mesh>);
- add_creator<GL::Object>(&Catalogue3D::create2<GL::Object>);
- add_creator<GL::Program>(&Catalogue3D::create<GL::Program>);
- add_creator<GL::Technique>(&Catalogue3D::create2<GL::Technique>);
+ 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>);
catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added));
catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added));