]> git.tdb.fi Git - r2c2.git/blob - source/3d/axle.h
Don't crash if a train has no router
[r2c2.git] / source / 3d / axle.h
1 #ifndef R2C2_3D_AXLE_H_
2 #define R2C2_3D_AXLE_H_
3
4 #include <msp/gl/objectinstance.h>
5 #include "libr2c2/vehicle.h"
6 #include "vehiclepart.h"
7
8 namespace R2C2 {
9
10 class Axle3D: public VehiclePart3D
11 {
12 private:
13         const Vehicle::Bogie *bogie;
14         const Vehicle::Axle &axle;
15
16 public:
17         Axle3D(const Vehicle3D &, unsigned);
18
19         virtual void update_matrix();
20 };
21
22 } // namespace R2C2
23
24 #endif