X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fstereoview.h;h=75361ba13abd56acf8cc50feb0585e75daa41f24;hp=ec1b246530b1e41090d677c1da7126fe18cb338e;hb=HEAD;hpb=b991b451b536d7e16703f22f989cb881f9eecbe8 diff --git a/source/stereoview.h b/source/stereoview.h index ec1b246..75361ba 100644 --- a/source/stereoview.h +++ b/source/stereoview.h @@ -12,6 +12,7 @@ namespace Msp { namespace VR { class HeadTrackingCamera; +class MotionController; class StereoCombiner; class StereoView @@ -41,6 +42,7 @@ private: RenderTarget *target; Eye(); + ~Eye(); void create_target(unsigned, unsigned); void setup_frame(const GL::Camera &, float, const EyeParams &) const; @@ -54,6 +56,7 @@ private: Eye left; Eye right; Geometry::Angle strabismus; + std::vector controllers; public: StereoView(const StereoCombiner &, const GL::Camera &); @@ -69,6 +72,9 @@ public: void set_eye_matrices(const GL::Matrix &, const GL::Matrix &); void set_strabismus(const Geometry::Angle &); + void add_controller(MotionController &); + void remove_controller(MotionController &); + private: void setup_frame() const; public: