]> git.tdb.fi Git - r2c2.git/blob - source/3d/endpoint.h
0abc52683c3e8e486f61aa2cfc87e8d5857f81d5
[r2c2.git] / source / 3d / endpoint.h
1 /* $Id$
2
3 This file is part of the MSP Märklin suite
4 Copyright © 2010 Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef MARKLIN3D_ENDPOINT_H_
9 #define MARKLIN3D_ENDPOINT_H_
10
11 #include <msp/gl/mesh.h>
12 #include <msp/gl/renderable.h>
13 #include "libmarklin/track.h"
14
15 namespace Marklin {
16
17 class Track3D;
18
19 class Endpoint3D: public Msp::GL::Renderable
20 {
21 private:
22         const Track3D &track;
23         unsigned index;
24         const Msp::GL::Mesh &mesh;
25
26 public:
27         Endpoint3D(const Track3D &, unsigned);
28         ~Endpoint3D();
29
30         virtual void render(const Msp::GL::Tag &) const;
31 };
32
33 } // namespace Marklin
34
35 #endif