]> git.tdb.fi Git - r2c2.git/blob - source/3d/axle.h
Enable Renderer for Endpoint3D and Path3D
[r2c2.git] / source / 3d / axle.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2011  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef LIBR2C23D_AXLE_H_
9 #define LIBR2C23D_AXLE_H_
10
11 #include <msp/gl/objectinstance.h>
12 #include "libr2c2/vehicle.h"
13
14 namespace R2C2 {
15
16 class Vehicle3D;
17
18 class Axle3D: public Msp::GL::ObjectInstance
19 {
20 private:
21         const Vehicle &vehicle;
22         const Vehicle::Bogie *bogie;
23         const Vehicle::Axle &axle;
24
25 public:
26         Axle3D(const Vehicle3D &, unsigned);
27         Axle3D(const Vehicle3D &, unsigned, unsigned);
28
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;
31 };
32
33 } // namespace R2C2
34
35 #endif