⚲
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
sOpenXR
All Projects
Scol
»
sOpenXR
Overview
Activity
Roadmap
Issues
Spent time
Gantt
Calendar
News
Documents
Wiki
Files
Repository
API Documentation
OPENXR Scol plugin
include
platform.h
1
2
#ifndef S_OPEN_XR_PLATFORM_H
3
#define S_OPEN_XR_PLATFORM_H
4
5
struct
PlatformData
{
6
#ifdef XR_USE_PLATFORM_ANDROID
7
void
* applicationVM;
8
void
* applicationActivity;
9
#endif
10
};
11
12
struct
IPlatform
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
23
std::shared_ptr<IPlatform> CreatePlatform(
const
std::shared_ptr<PlatformData>& data);
24
25
#endif
IPlatform
Definition
platform.h:13
PlatformData
Definition
platform.h:5
Generated by
1.9.8
Loading...