]> git.tdb.fi Git - libs/vr.git/blobdiff - source/stereocombiner.h
Add a StereoCombiner subclass for the Oculus Rift
[libs/vr.git] / source / stereocombiner.h
index a4b91bfbf9edfa82c477301a5df26e74e0961911..5fb8dec7e5154fd716e2a93419ec641f2c204a6a 100644 (file)
@@ -15,6 +15,7 @@ protected:
        unsigned height_div;
        bool keep_aspect;
        Geometry::Angle<float> fov;
        unsigned height_div;
        bool keep_aspect;
        Geometry::Angle<float> fov;
+       float oversize;
 
        StereoCombiner();
 public:
 
        StereoCombiner();
 public:
@@ -24,6 +25,7 @@ public:
        unsigned get_height_divisor() const { return height_div; }
        bool is_aspect_kept() const { return keep_aspect; }
        const Geometry::Angle<float> &get_field_of_view() const { return fov; }
        unsigned get_height_divisor() const { return height_div; }
        bool is_aspect_kept() const { return keep_aspect; }
        const Geometry::Angle<float> &get_field_of_view() const { return fov; }
+       float get_oversize() const { return oversize; }
 
        virtual void render(const Texture2D &, const Texture2D &) const = 0;
 };
 
        virtual void render(const Texture2D &, const Texture2D &) const = 0;
 };