Add getters for the camera in StereoView
authorMikko Rasa <tdb@tdb.fi>
Wed, 5 Oct 2016 23:37:31 +0000 (02:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 5 Oct 2016 23:37:31 +0000 (02:37 +0300)
source/stereoview.h

index bc9073ed5808ebf8e9802bdbd92f21d673fd584f..ec1b246530b1e41090d677c1da7126fe18cb338e 100644 (file)
@@ -62,6 +62,8 @@ private:
        void init();
 
 public:
+       const GL::Camera &get_base_camera() const { return base_camera; }
+       const HeadTrackingCamera *get_head_camera() const { return head_camera; }
        void set_content(const GL::Renderable *);
        void set_eye_spacing(float);
        void set_eye_matrices(const GL::Matrix &, const GL::Matrix &);