]> git.tdb.fi Git - libs/vr.git/blob - source/openvr/openvrsystem.h
Rename DisplayDevice to System
[libs/vr.git] / source / openvr / openvrsystem.h
1 #ifndef MSP_VR_OPENVRSYSTEM_H_
2 #define MSP_VR_OPENVRSYSTEM_H_
3
4 #include <msp/gl/matrix.h>
5 #include <msp/vr/system.h>
6 #include "openvrcamera.h"
7 #include "openvrcombiner.h"
8
9 namespace Msp {
10 namespace VR {
11
12 class OpenVRSystem: public System
13 {
14 private:
15         GL::Matrix hmd_matrix;
16
17         static unsigned n_instances;
18
19 public:
20         OpenVRSystem();
21         ~OpenVRSystem();
22
23         virtual void configure_window(Graphics::Window &) const { }
24         virtual void configure_view(StereoView &) const;
25         virtual OpenVRCamera *create_camera(const GL::Camera &);
26         virtual OpenVRCombiner *create_combiner(GL::View &);
27
28         void update_pose_matrices();
29         const GL::Matrix &get_hmd_matrix() const { return hmd_matrix; }
30 };
31
32 } // namespace VR
33 } // namespace Msp
34
35 #endif