]> git.tdb.fi Git - r2c2.git/blob - source/3d/path.h
58dae2435d8fe4cb87036d2857035273e31bbf2a
[r2c2.git] / source / 3d / path.h
1 #ifndef R2C2_3D_PATH_H_
2 #define R2C2_3D_PATH_H_
3
4 #include <msp/gl/color.h>
5 #include <msp/gl/mesh.h>
6 #include <msp/gl/renderable.h>
7
8 namespace R2C2 {
9
10 class Track3D;
11
12 class Path3D: public Msp::GL::Renderable
13 {
14 private:
15         const Track3D &track;
16         unsigned paths;
17         bool automatic;
18         Msp::GL::Color color;
19         float z_offs;
20
21 public:
22         Path3D(const Track3D &);
23         ~Path3D();
24
25         void set_automatic();
26         void set_path(unsigned);
27         void set_mask(unsigned);
28         void set_color(const Msp::GL::Color &);
29         void set_layer(float);
30
31         virtual long get_instance_key() const;
32
33         virtual void render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
34 };
35
36 } // namespace R2C2
37
38 #endif