]> git.tdb.fi Git - libs/vr.git/blobdiff - source/stereoview.h
Add strabismus correction
[libs/vr.git] / source / stereoview.h
index fe3d6d6b82f57de8a920ea01c326ccde6c817748..b1e0473029fec0e05ceb848f1aefd5c9f0fbe700 100644 (file)
@@ -41,7 +41,7 @@ private:
                Eye();
 
                void create_target(unsigned, unsigned);
-               void setup_frame(const GL::Camera &, const GL::Vector3 &, const EyeParams &) const;
+               void setup_frame(const GL::Camera &, const GL::Vector3 &, float, const EyeParams &) const;
                void render(const GL::Renderable &, const GL::Tag &) const;
        };
 
@@ -53,6 +53,7 @@ private:
        Eye left;
        Eye right;
        float eye_spacing;
+       Geometry::Angle<float> strabismus;
        mutable GL::Vector3 offset_axis;
 
 public:
@@ -60,6 +61,7 @@ public:
 
        void set_combiner(const StereoCombiner &);
        void set_eye_spacing(float);
+       void set_strabismus(const Geometry::Angle<float> &);
 
        virtual void setup_frame() const;
        virtual void finish_frame() const;