Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/openxr/src/loader/android_utilities.h
9917 views
1
// Copyright (c) 2020-2025 The Khronos Group Inc.
2
// Copyright (c) 2020-2021, Collabora, Ltd.
3
//
4
// SPDX-License-Identifier: Apache-2.0 OR MIT
5
//
6
// Initial Author: Rylie Pavlik <[email protected]>
7
8
#pragma once
9
#ifdef __ANDROID__
10
11
#include "wrap/android.content.h"
12
13
#include <string>
14
namespace Json {
15
class Value;
16
} // namespace Json
17
18
namespace openxr_android {
19
using wrap::android::content::Context;
20
21
/*!
22
* Find the single active OpenXR runtime on the system, and return a constructed JSON object representing it.
23
*
24
* @param context An Android context, preferably an Activity Context.
25
* @param[out] virtualManifest The Json::Value to fill with the virtual manifest.
26
*
27
* @return 0 on success, something else on failure.
28
*/
29
int getActiveRuntimeVirtualManifest(wrap::android::content::Context const &context, Json::Value &virtualManifest);
30
} // namespace openxr_android
31
32
#endif // __ANDROID__
33
34