]> git.tdb.fi Git - r2c2.git/blob - source/3d/catalogue.h
Split mesh generation from Track3D to TrackType3D
[r2c2.git] / source / 3d / catalogue.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN3D_CATALOGUE_H_
9 #define MARKLIN3D_CATALOGUE_H_
10
11 #include <msp/gl/material.h>
12 #include "libmarklin/catalogue.h"
13
14 namespace Marklin {
15
16 class TrackType3D;
17
18 class Catalogue3D
19 {
20 private:
21         const Catalogue &catalogue;
22         std::map<const TrackType *, TrackType3D *> tracks;
23         Msp::GL::Material *ballast_material;
24
25 public:
26         Catalogue3D(const Catalogue &);
27
28         const Catalogue &get_catalogue() const { return catalogue; }
29         const TrackType3D &get_track(const TrackType &) const;
30 };
31
32 }
33
34 #endif