]> git.tdb.fi Git - r2c2.git/blob - source/3d/sky.h
Render a sky in the upper hemisphere of a view's background
[r2c2.git] / source / 3d / sky.h
1 #ifndef R2C2_3D_SKY_H_
2 #define R2C2_3D_SKY_H_
3
4 #include <msp/gl/objectinstance.h>
5 #include <msp/gl/programdata.h>
6 #include <msp/gl/renderable.h>
7
8 namespace R2C2 {
9
10 class Catalogue3D;
11
12 class Sky3D: public Msp::GL::ObjectInstance
13 {
14 private:
15         mutable Msp::GL::ProgramData shdata;
16
17 public:
18         Sky3D(Catalogue3D &);
19
20 private:
21         virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
22 };
23
24 } // namespace R2C2
25
26 #endif