X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fopenvr%2Fopenvrsystem.h;h=119eb16e7e7948d211cea8b7804360c7d40b4a89;hb=2acdfcc95c317f30e725e17f0d372fce050830ef;hp=06881f8b531370ff63b2464d8b098cb3493055a2;hpb=7ad8d41683649816d3d162f614dc8bb585053311;p=libs%2Fvr.git diff --git a/source/openvr/openvrsystem.h b/source/openvr/openvrsystem.h index 06881f8..119eb16 100644 --- a/source/openvr/openvrsystem.h +++ b/source/openvr/openvrsystem.h @@ -12,7 +12,8 @@ namespace VR { class OpenVRSystem: public System { private: - GL::Matrix hmd_matrix; + unsigned n_tracked_devices; + std::vector tracking_matrices; static unsigned n_instances; @@ -30,8 +31,11 @@ public: virtual OpenVRCamera *create_camera(const GL::Camera &); virtual OpenVRCombiner *create_combiner(GL::View &); + virtual void tick(); + void update_pose_matrices(); - const GL::Matrix &get_hmd_matrix() const { return hmd_matrix; } + const GL::Matrix &get_tracking_matrix(unsigned) const; + const GL::Matrix &get_hmd_matrix() const; }; } // namespace VR