Voxellancer  0.3
A game about voxels in space
 All Classes Functions Pages
hmdmanager.h
1 #pragma once
2 
3 #include <memory>
4 
5 
6 namespace OVR {
7  class DeviceManager;
8 }
9 
10 class Viewer;
11 class HMD;
12 
13 class HMDManager {
14 public:
15  static std::shared_ptr<HMDManager> instance();
16 
17  ~HMDManager();
18 
19  void setupHMD(Viewer& viewer);
20 
21  HMD* hmd();
22 
23 
24 protected:
25  static std::weak_ptr<HMDManager> s_instance;
26 
27  HMD* m_hmd;
28  OVR::DeviceManager* m_deviceManager;
29 
30 
31  HMDManager();
32 };
33 
Definition: hmd.h:19
Definition: hmdmanager.h:13
Definition: viewer.h:12