]> git.tdb.fi Git - libs/vr.git/blob - source/displaydevice.h
Add interfaces for dealing with VR headsets
[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
12 class DisplayDevice
13 {
14 protected:
15         DisplayDevice() { }
16 public:
17         virtual ~DisplayDevice() { }
18
19         virtual HeadTrackingCamera *create_camera(const GL::Camera &) const = 0;
20         virtual StereoCombiner *create_combiner() const = 0;
21 };
22
23 } // namespace VR
24 } // namespace Msp
25
26 #endif