3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef MARKLIN3D_CATALOGUE_H_
9 #define MARKLIN3D_CATALOGUE_H_
11 #include <msp/gl/material.h>
12 #include <msp/gl/mesh.h>
13 #include "libmarklin/catalogue.h"
23 std::map<const TrackType *, TrackType3D *> tracks;
24 Msp::GL::Material ballast_material;
25 Msp::GL::Material rail_material;
26 Msp::GL::Mesh endpoint_mesh;
29 Catalogue3D(Catalogue &);
32 const Catalogue &get_catalogue() const { return catalogue; }
33 const TrackType3D &get_track(const TrackType &) const;
34 const Msp::GL::Material &get_ballast_material() const { return ballast_material; }
35 const Msp::GL::Material &get_rail_material() const { return rail_material; }
36 const Msp::GL::Mesh &get_endpoint_mesh() const { return endpoint_mesh; }
38 void track_added(const TrackType &);
39 void build_endpoint_mesh();