]> git.tdb.fi Git - r2c2.git/blob - source/3d/bogie.h
Make use of the mspmath library
[r2c2.git] / source / 3d / bogie.h
1 #ifndef LIBR2C23D_BOGIE_H_
2 #define LIBR2C23D_BOGIE_H_
3
4 #include <msp/gl/objectinstance.h>
5 #include "libr2c2/vehicle.h"
6
7 namespace R2C2 {
8
9 class Vehicle3D;
10
11 class Bogie3D: public Msp::GL::ObjectInstance
12 {
13 private:
14         const Vehicle &vehicle;
15         const Vehicle::Bogie &bogie;
16
17 public:
18         Bogie3D(const Vehicle3D &, unsigned);
19
20         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
21         virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
22 };
23
24 } // namespace R2C2
25
26 #endif