Overte C++ Documentation
DebugHmdDisplayPlugin.h
1 //
2 // Created by Bradley Austin Davis on 2016/07/31
3 // Copyright 2015 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 #pragma once
9 
10 #include "HmdDisplayPlugin.h"
11 
12 class DebugHmdDisplayPlugin : public HmdDisplayPlugin {
13  using Parent = HmdDisplayPlugin;
14 
15 public:
16  const QString getName() const override { return NAME; }
17  grouping getGrouping() const override { return DEVELOPER; }
18 
19  bool isSupported() const override;
20  void resetSensors() override final;
21  bool beginFrameRender(uint32_t frameIndex) override;
22  float getTargetFrameRate() const override { return 90; }
23 
24 
25 protected:
26  void updatePresentPose() override;
27  void hmdPresent() override {}
28  bool isHmdMounted() const override { return true; }
29  bool internalActivate() override;
30 private:
31 
32  static const QString NAME;
33  bool _isAutoRotateEnabled{ true };
34 };