]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/catalogue.h
Move track appearance properties into a separate class
[r2c2.git] / source / 3d / catalogue.h
index 1cc096a67b9588ca3dbffb5867f43bc0129695aa..ea4182893b36a3b1f3823b36e99f08e66577fbbe 100644 (file)
@@ -17,7 +17,7 @@ class Catalogue3D: public Msp::DataFile::Collection
 private:
        Catalogue &catalogue;
        std::map<const ObjectType *, ObjectType3D *> objects;
-       Msp::GL::Mesh endpoint_mesh;
+       std::map<const TrackAppearance *, Msp::GL::Mesh *> endpoint_meshes;
 
 public:
        Catalogue3D(Catalogue &);
@@ -34,9 +34,9 @@ public:
        { return dynamic_cast<const typename TypeMap3D<T>::Type3D &>(get_3d(static_cast<const ObjectType &>(ot))); }
 
 private:
-       void build_endpoint_mesh();
+       void build_endpoint_mesh(const TrackAppearance &);
 public:
-       const Msp::GL::Mesh &get_endpoint_mesh() const { return endpoint_mesh; }
+       const Msp::GL::Mesh &get_endpoint_mesh(const TrackAppearance &) const;
 
 private:
        Msp::FS::Path locate_file(const std::string &);