gramods
HmdView.hh
1 
2 #ifndef GRAMODS_GRAPHICS_HMDVIEW
3 #define GRAMODS_GRAPHICS_HMDVIEW
4 
5 #include <gmGraphics/config.hh>
6 
7 #ifdef gramods_ENABLE_OpenVR
8 
9 #include <gmCore/OpenVR.hh>
10 
11 #include <gmGraphics/View.hh>
12 
13 BEGIN_NAMESPACE_GMGRAPHICS;
14 
20 class HmdView
21  : public View {
22 
23 public:
24  HmdView();
25 
26  void renderFullPipeline(ViewSettings settings) override;
27 
33  void traverse(Visitor *visitor) override;
34 
39  void setShowEye(size_t t);
40 
46  void setOpenVR(std::shared_ptr<gmCore::OpenVR> openvr);
47 
48  GM_OFI_DECLARE;
49 
50 private:
51  struct Impl;
52  std::unique_ptr<Impl> _impl;
53 };
54 
55 END_NAMESPACE_GMGRAPHICS;
56 
57 #endif
58 #endif
View that reads off head tracking and calls the renderers to output the rendered contents to a HMD vi...
Definition: HmdView.hh:21
The base of graphics View implementations.
Definition: View.hh:13
The visitor of a design pattern for automatic traversal.
Definition: Object.hh:75
Definition: HmdView.cpp:21
Package of settings affecting the rendering.
Definition: ViewBase.hh:30