Project

General

Profile

OPENXR Scol plugin
platform.h
1
2#ifndef S_OPEN_XR_PLATFORM_H
3#define S_OPEN_XR_PLATFORM_H
4
6#ifdef XR_USE_PLATFORM_ANDROID
7 void* applicationVM;
8 void* applicationActivity;
9#endif
10};
11
13{
14 virtual ~IPlatform() = default;
15
16 // Provide extension to XrInstanceCreateInfo for xrCreateInstance.
17 virtual XrBaseInStructure* GetInstanceCreateExtension() const = 0;
18
19 // OpenXR instance-level extensions required by this platform.
20 virtual std::vector<std::string> GetInstanceExtensions() const = 0;
21};
22
23std::shared_ptr<IPlatform> CreatePlatform(const std::shared_ptr<PlatformData>& data);
24
25#endif