3 This file is part of R²C²
4 Copyright © 2011 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
8 #ifndef LIBR2C23D_AXLE_H_
9 #define LIBR2C23D_AXLE_H_
11 #include <msp/gl/objectinstance.h>
12 #include "libr2c2/vehicle.h"
18 class Axle3D: public Msp::GL::ObjectInstance
21 const Vehicle &vehicle;
22 const Vehicle::Bogie *bogie;
23 const Vehicle::Axle &axle;
26 Axle3D(const Vehicle3D &, unsigned);
27 Axle3D(const Vehicle3D &, unsigned, unsigned);
29 virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
30 virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;