]> git.tdb.fi Git - libs/vr.git/blob - source/displaydevice.h
Add positional tracking support on the Oculus Rift DK2
[libs/vr.git] / source / displaydevice.h
1 #ifndef MSP_VR_DISPLAYDEVICE_H_
2 #define MSP_VR_DISPLAYDEVICE_H_
3
4 #include <msp/gl/camera.h>
5
6 namespace Msp {
7 namespace VR {
8
9 class HeadTrackingCamera;
10 class StereoCombiner;
11 class StereoView;
12
13 class DisplayDevice
14 {
15 protected:
16         DisplayDevice() { }
17 public:
18         virtual ~DisplayDevice() { }
19
20         virtual void configure_view(StereoView &) const = 0;
21         virtual HeadTrackingCamera *create_camera(const GL::Camera &) const = 0;
22         virtual StereoCombiner *create_combiner() const = 0;
23 };
24
25 } // namespace VR
26 } // namespace Msp
27
28 #endif