forked from CidVonHighwind/FrontendGo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOvrApp.h
More file actions
46 lines (30 loc) · 933 Bytes
/
OvrApp.h
File metadata and controls
46 lines (30 loc) · 933 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef OVRAPP_H
#define OVRAPP_H
#include "App.h"
#include "GuiSys.h"
#include "OVR_Locale.h"
#include "SoundEffectContext.h"
#include "SystemClock.h"
#include <memory>
namespace OVR {
class ovrLocale;
}
void SaveSettings();
void LoadSettings();
void ScanDirectory();
void CreateScreen();
class OvrApp : public OVR::VrAppInterface {
public:
OvrApp();
virtual ~OvrApp();
virtual void Configure(OVR::ovrSettings &settings);
virtual void EnteredVrMode(const OVR::ovrIntentType intentType, const char *intentFromPackage, const char *intentJSON, const char *intentURI);
virtual void LeavingVrMode();
virtual OVR::ovrFrameResult Frame(const OVR::ovrFrameInput &vrFrame);
class OVR::ovrLocale &GetLocale() { return *Locale; }
private:
OVR::OvrGuiSys::SoundEffectPlayer *SoundEffectPlayer;
OVR::OvrGuiSys *GuiSys;
OVR::ovrLocale *Locale;
};
#endif // OVRAPP_H