]> git.tdb.fi Git - r2c2.git/blob - source/3d/bogie.h
a9b9d54e2967053e2156bfd843c121c6ff24fb15
[r2c2.git] / source / 3d / bogie.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_BOGIE_H_
9 #define LIBR2C23D_BOGIE_H_
10
11 #include <msp/gl/objectinstance.h>
12 #include "libr2c2/vehicle.h"
13
14 namespace R2C2 {
15
16 class Vehicle3D;
17
18 class Bogie3D: public Msp::GL::ObjectInstance
19 {
20 private:
21         const Vehicle &vehicle;
22         const Vehicle::Bogie &bogie;
23
24 public:
25         Bogie3D(const Vehicle3D &, unsigned);
26
27         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
28         virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
29 };
30
31 } // namespace R2C2
32
33 #endif