X-Git-Url: http://git.tdb.fi/?p=libs%2Fvr.git;a=blobdiff_plain;f=source%2Fstereoview.h;h=bc9073ed5808ebf8e9802bdbd92f21d673fd584f;hp=ff34706cc4b450d1daff8d7844b5147c282ffc5d;hb=23a6e642715fab2f275a2015ea079137cb31036d;hpb=78598b41009aeabb7f9b4b4ddc05b68e7edd6eb6 diff --git a/source/stereoview.h b/source/stereoview.h index ff34706..bc9073e 100644 --- a/source/stereoview.h +++ b/source/stereoview.h @@ -37,12 +37,13 @@ private: struct Eye { mutable GL::Camera camera; + GL::Matrix offset_matrix; RenderTarget *target; Eye(); void create_target(unsigned, unsigned); - void setup_frame(const GL::Camera &, const GL::Vector3 &, float, const EyeParams &) const; + void setup_frame(const GL::Camera &, float, const EyeParams &) const; void render(const GL::Renderable &) const; }; @@ -52,7 +53,6 @@ private: const GL::Renderable *content; Eye left; Eye right; - float eye_spacing; Geometry::Angle strabismus; public: @@ -64,6 +64,7 @@ private: public: void set_content(const GL::Renderable *); void set_eye_spacing(float); + void set_eye_matrices(const GL::Matrix &, const GL::Matrix &); void set_strabismus(const Geometry::Angle &); private: