mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add a get_system_info method to XRInterface
This commit is contained in:
parent
550a779851
commit
e31c2e4277
14 changed files with 69 additions and 1 deletions
|
@ -385,8 +385,13 @@ bool OpenXRAPI::create_instance() {
|
|||
if (XR_FAILED(result)) {
|
||||
// not fatal probably
|
||||
print_line("OpenXR: Failed to get XR instance properties [", get_error_string(result), "]");
|
||||
|
||||
runtime_name = "";
|
||||
runtime_version = "";
|
||||
} else {
|
||||
print_line("OpenXR: Running on OpenXR runtime: ", instanceProps.runtimeName, " ", OpenXRUtil::make_xr_version_string(instanceProps.runtimeVersion));
|
||||
runtime_name = instanceProps.runtimeName;
|
||||
runtime_version = OpenXRUtil::make_xr_version_string(instanceProps.runtimeVersion);
|
||||
print_line("OpenXR: Running on OpenXR runtime: ", runtime_name, " ", runtime_version);
|
||||
}
|
||||
|
||||
for (OpenXRExtensionWrapper *wrapper : registered_extension_wrappers) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue