]> 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 f3e359c2b9524108b1f566a9e19ffc1ad0e31c92..3b0d625df7456c74178becd3eb9476e01718ffb3 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <msp/gl/camera.h>
 #include <msp/gl/pipeline.h>
+#include "sky.h"
 
 namespace R2C2 {
 
@@ -12,8 +13,11 @@ class View3D
 {
 protected:
        Layout3D &layout;
+       unsigned width;
+       unsigned height;
        Msp::GL::Camera camera;
        Msp::GL::Pipeline pipeline;
+       Sky3D sky;
 
 public:
        View3D(Layout3D &, unsigned, unsigned);
@@ -22,6 +26,9 @@ public:
        Msp::GL::Camera &get_camera() { return camera; }
        Msp::GL::Pipeline &get_pipeline() { return pipeline; }
 
+       Ray create_ray(int, int) const;
+       Ray create_ray(float, float) const;
+
        void view_all(bool = false);
 
        void render();