]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/sky.h
Render a sky in the upper hemisphere of a view's background
[r2c2.git] / source / 3d / sky.h
diff --git a/source/3d/sky.h b/source/3d/sky.h
new file mode 100644 (file)
index 0000000..88b170b
--- /dev/null
@@ -0,0 +1,26 @@
+#ifndef R2C2_3D_SKY_H_
+#define R2C2_3D_SKY_H_
+
+#include <msp/gl/objectinstance.h>
+#include <msp/gl/programdata.h>
+#include <msp/gl/renderable.h>
+
+namespace R2C2 {
+
+class Catalogue3D;
+
+class Sky3D: public Msp::GL::ObjectInstance
+{
+private:
+       mutable Msp::GL::ProgramData shdata;
+
+public:
+       Sky3D(Catalogue3D &);
+
+private:
+       virtual void setup_render(Msp::GL::Renderer &, const Msp::GL::Tag &) const;
+};
+
+} // namespace R2C2
+
+#endif