From: Mikko Rasa Date: Thu, 17 Jan 2013 12:28:30 +0000 (+0200) Subject: Use the new API for defining types in a collection X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=72edbf54afe12b47bfe9c3a030d6c6ae695bda18;p=r2c2.git Use the new API for defining types in a collection --- diff --git a/source/3d/catalogue.cpp b/source/3d/catalogue.cpp index 7169c60..935219e 100644 --- a/source/3d/catalogue.cpp +++ b/source/3d/catalogue.cpp @@ -16,11 +16,11 @@ Catalogue3D::Catalogue3D(Catalogue &c): catalogue(c), endpoint_mesh((GL::NORMAL3, GL::VERTEX3)) { - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); - add_creator(&Catalogue3D::create); - add_creator(&Catalogue3D::create2); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); + add_type().creator(&Catalogue3D::create); catalogue.signal_track_added.connect(sigc::mem_fun(this, &Catalogue3D::track_added)); catalogue.signal_vehicle_added.connect(sigc::mem_fun(this, &Catalogue3D::vehicle_added));