From: Mikko Rasa Date: Sun, 15 Sep 2013 12:40:41 +0000 (+0300) Subject: Add interfaces for dealing with VR headsets X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=8e2e8257d569fd9a626bdb2a4a0e8767f3b3be12;p=libs%2Fvr.git Add interfaces for dealing with VR headsets --- diff --git a/source/displaydevice.h b/source/displaydevice.h new file mode 100644 index 0000000..8bd960d --- /dev/null +++ b/source/displaydevice.h @@ -0,0 +1,26 @@ +#ifndef MSP_VR_DISPLAYDEVICE_H_ +#define MSP_VR_DISPLAYDEVICE_H_ + +#include + +namespace Msp { +namespace VR { + +class HeadTrackingCamera; +class StereoCombiner; + +class DisplayDevice +{ +protected: + DisplayDevice() { } +public: + virtual ~DisplayDevice() { } + + virtual HeadTrackingCamera *create_camera(const GL::Camera &) const = 0; + virtual StereoCombiner *create_combiner() const = 0; +}; + +} // namespace VR +} // namespace Msp + +#endif diff --git a/source/headtrackingcamera.h b/source/headtrackingcamera.h new file mode 100644 index 0000000..b12a929 --- /dev/null +++ b/source/headtrackingcamera.h @@ -0,0 +1,23 @@ +#ifndef MSP_VR_HEADTRACKINGCAMERA_H_ +#define MSP_VR_HEADTRACKINGCAMERA_H_ + +#include + +namespace Msp { +namespace VR { + +class HeadTrackingCamera: public Msp::GL::Camera +{ +protected: + HeadTrackingCamera() { } + +public: + virtual ~HeadTrackingCamera() { } + + virtual void update() = 0; +}; + +} // namespace VR +} // namespace Msp + +#endif