You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-03 16:55:53 +00:00
Add OpenXR 1.0.22 to thirdparty libraries
Will be compiled and used in the next commit. Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
This commit is contained in:
committed by
Rémi Verschelde
parent
fcf8c2006d
commit
65bae5a341
32
thirdparty/openxr/src/loader/android_utilities.h
vendored
Normal file
32
thirdparty/openxr/src/loader/android_utilities.h
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// Copyright (c) 2020-2022, The Khronos Group Inc.
|
||||
// Copyright (c) 2020-2021, Collabora, Ltd.
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0 OR MIT
|
||||
//
|
||||
// Initial Author: Ryan Pavlik <ryan.pavlik@collabora.com>
|
||||
|
||||
#pragma once
|
||||
#ifdef __ANDROID__
|
||||
|
||||
#include "wrap/android.content.h"
|
||||
|
||||
#include <string>
|
||||
namespace Json {
|
||||
class Value;
|
||||
} // namespace Json
|
||||
|
||||
namespace openxr_android {
|
||||
using wrap::android::content::Context;
|
||||
|
||||
/*!
|
||||
* Find the single active OpenXR runtime on the system, and return a constructed JSON object representing it.
|
||||
*
|
||||
* @param context An Android context, preferably an Activity Context.
|
||||
* @param[out] virtualManifest The Json::Value to fill with the virtual manifest.
|
||||
*
|
||||
* @return 0 on success, something else on failure.
|
||||
*/
|
||||
int getActiveRuntimeVirtualManifest(wrap::android::content::Context const &context, Json::Value &virtualManifest);
|
||||
} // namespace openxr_android
|
||||
|
||||
#endif // __ANDROID__
|
||||
Reference in New Issue
Block a user