]> git.tdb.fi Git - libs/vr.git/blob - source/displaydevice.h
Add support for time warp on Oculus Rift
[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         virtual void begin_frame() = 0;
25         virtual void end_frame() = 0;
26 };
27
28 } // namespace VR
29 } // namespace Msp
30
31 #endif