]> git.tdb.fi Git - libs/gl.git/blobdiff - source/camera.h
Support off-center frustum in Camera
[libs/gl.git] / source / camera.h
index 11d42985c7bd4719a2073c4c16919b69b03b9979..a0e4d6f65fb3215a5d8f64e2fbc1fef58347377f 100644 (file)
@@ -15,6 +15,8 @@ private:
        // Some compilers have "near" and "far" keywords
        float clip_near;
        float clip_far;
+       float frustum_x;
+       float frustum_y;
        Vector3 position;
        Vector3 look_dir;
        Vector3 up_dir;
@@ -26,6 +28,7 @@ public:
        void set_field_of_view(const Geometry::Angle<float> &);
        void set_aspect(float);
        void set_depth_clip(float, float);
+       void set_frustum_axis(float, float);
        const Geometry::Angle<float> &get_field_of_view() const { return fov; }
        float get_aspect() const { return aspect; }
        float get_near_clip() const { return clip_near; }