Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
hmd.h
1 #pragma once
2 
3 #include <memory>
4 
5 #include <glm/glm.hpp>
6 #include <glm/gtx/quaternion.hpp>
7 
8 #include <glow/ref_ptr.h>
9 
10 #include "display/stereorenderinfo.h"
11 
12 
13 namespace OVR {
14  class HMDDevice;
15  class SensorDevice;
16  class SensorFusion;
17 }
18 
19 class HMD {
20 public:
21  HMD(OVR::HMDDevice* hmdDevice);
22  ~HMD();
23 
24  glm::quat orientation();
25 
26  const StereoRenderInfo& stereoRenderInfo() const;
27 
28 
29 protected:
30  std::unique_ptr<OVR::SensorFusion> m_sensorFusion;
31  OVR::HMDDevice* m_hmdDevice;
32  OVR::SensorDevice* m_sensorDevice;
33 
34  StereoRenderInfo m_stereoRenderInfo;
35 };
36 
Definition: hmd.h:19
Definition: stereorenderinfo.h:14