evan 2026.1.4
Evan
Loading...
Searching...
No Matches
AndroidXrPlatform.hpp
1/*
2** ETIB PROJECT, 2026
3** evan
4** File description:
5** AndroidXrPlatform
6*/
7
8#pragma once
9
10#include "evan/openxr/IXrPlatform.hpp"
11
12#include <filesystem>
13
14namespace evan
15{
27 {
28 public:
65
74#ifdef __ANDROID__
81 ANativeWindow *NativeWindow = nullptr;
82#endif
83
90 bool _resumed = false;
91
99 bool _paused = false;
100 };
101
114
120 ~AndroidXrPlatform() override = default;
121
145 std::vector<std::string> getRequiredInstanceExtensions() const override;
146
164 const XrBaseInStructure *getInstanceCreateInfo() const override;
165
176
177 protected:
190 std::filesystem::path getDefaultCacheRoot() const override;
191
192 private:
193#ifdef __ANDROID__
204#endif
205
216 AndroidPlatformData _platformData;
217 };
218} // namespace evan
The AndroidXrPlatform class provides platform-specific implementations for OpenXR on Android devices.
const XrBaseInStructure * getInstanceCreateInfo() const override
Retrieves the Android-specific XR instance creation information.
std::filesystem::path getDefaultCacheRoot() const override
Get the cache root directory of the Android application.
~AndroidXrPlatform() override=default
Destructor for AndroidXrPlatform.
std::vector< std::string > getRequiredInstanceExtensions() const override
Retrieves the list of required OpenXR instance extensions for Android platform.
AndroidAppState _appState
Tracks the current state of the Android application.
OpenXR platform implementation.
Struct to track the current state of the Android application. This struct is used to manage the lifec...
bool _paused
Indicates whether the Android application is currently paused. This flag can be used to determine if ...
bool _resumed
Indicates whether the Android application is currently resumed. This flag can be used to determine if...
Struct to hold Android-specific platform data for OpenXR initialization.
void * androidApp
Pointer to the Android application structure. This is used for handling Android application lifecycle...
void * applicationVM
Pointer to the Android application VM.
void * applicationActivity
Pointer to the Android application activity.
Small result wrapper used by helpers that must return both a status and a value (e....
Definition Error.hpp:89