]> git.tdb.fi Git - r2c2.git/blob - source/3d/endpoint.h
a3074d150c67eba8761ff31573421eeb7ecd341c
[r2c2.git] / source / 3d / endpoint.h
1 /* $Id$
2
3 This file is part of R²C²
4 Copyright © 2010-2011  Mikkosoft Productions, Mikko Rasa
5 Distributed under the GPL
6 */
7
8 #ifndef R2C2_3D_ENDPOINT_H_
9 #define R2C2_3D_ENDPOINT_H_
10
11 #include <msp/gl/mesh.h>
12 #include <msp/gl/renderable.h>
13 #include "libr2c2/track.h"
14
15 namespace R2C2 {
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(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
31 };
32
33 } // namespace R2C2
34
35 #endif