]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/view.h
Render a sky in the upper hemisphere of a view's background
[r2c2.git] / source / 3d / view.h
index a1bdaf50cc605e7ae45ae7be4de270c9a53d1f1f..3b0d625df7456c74178becd3eb9476e01718ffb3 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <msp/gl/camera.h>
 #include <msp/gl/pipeline.h>
+#include "sky.h"
 
 namespace R2C2 {
 
@@ -16,6 +17,7 @@ protected:
        unsigned height;
        Msp::GL::Camera camera;
        Msp::GL::Pipeline pipeline;
+       Sky3D sky;
 
 public:
        View3D(Layout3D &, unsigned, unsigned);
@@ -24,8 +26,8 @@ public:
        Msp::GL::Camera &get_camera() { return camera; }
        Msp::GL::Pipeline &get_pipeline() { return pipeline; }
 
-       Ray create_ray(int, int);
-       Ray create_ray(float, float);
+       Ray create_ray(int, int) const;
+       Ray create_ray(float, float) const;
 
        void view_all(bool = false);