]> git.tdb.fi Git - r2c2.git/blob - source/3d/rod.h
6a32510ef92846e9c7d3c468576b19ac417fb360
[r2c2.git] / source / 3d / rod.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_ROD_H_
9 #define LIBR2C23D_ROD_H_
10
11 #include <msp/gl/objectinstance.h>
12 #include "libr2c2/vehicle.h"
13
14 namespace R2C2 {
15
16 class Vehicle3D;
17
18 class Rod3D: public Msp::GL::ObjectInstance
19 {
20 private:
21         const Vehicle &vehicle;
22         const Vehicle::Rod &rod;
23
24 public:
25         Rod3D(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