X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fheadtrackingcamera.h;h=c2001365f4eaa249d6bb46b77643a8e231647274;hp=36f0170209b7ad64b639557cbe1a4b783d521059;hb=0b9fa4d7eb2acb22f5f4f31bbd508d0216421108;hpb=a6b7e23d5d47c37284480651a9686be01f28a82a diff --git a/source/headtrackingcamera.h b/source/headtrackingcamera.h index 36f0170..c200136 100644 --- a/source/headtrackingcamera.h +++ b/source/headtrackingcamera.h @@ -9,13 +9,18 @@ namespace VR { class HeadTrackingCamera: public Msp::GL::Camera { protected: - HeadTrackingCamera() { } + const GL::Camera &base_camera; + float elevation_offset; + HeadTrackingCamera(const GL::Camera &); public: virtual ~HeadTrackingCamera() { } + void set_elevation_offset(float); virtual void reset_tracking() { } virtual void update() = 0; +protected: + void update_from_matrix(const GL::Matrix &); }; } // namespace VR