]> git.tdb.fi Git - r2c2.git/blob - source/3d/axle.h
Strip Id tags and copyright notices from files
[r2c2.git] / source / 3d / axle.h
1 #ifndef LIBR2C23D_AXLE_H_
2 #define LIBR2C23D_AXLE_H_
3
4 #include <msp/gl/objectinstance.h>
5 #include "libr2c2/vehicle.h"
6
7 namespace R2C2 {
8
9 class Vehicle3D;
10
11 class Axle3D: public Msp::GL::ObjectInstance
12 {
13 private:
14         const Vehicle &vehicle;
15         const Vehicle::Bogie *bogie;
16         const Vehicle::Axle &axle;
17
18 public:
19         Axle3D(const Vehicle3D &, unsigned);
20         Axle3D(const Vehicle3D &, unsigned, unsigned);
21
22         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
23         virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
24 };
25
26 } // namespace R2C2
27
28 #endif