feat: implement XR_META_boundary_visibility
This commit is contained in:
@@ -1393,6 +1393,7 @@ void application::initialize()
|
||||
XR_META_BODY_TRACKING_FIDELITY_EXTENSION_NAME,
|
||||
XR_META_BODY_TRACKING_FULL_BODY_EXTENSION_NAME,
|
||||
XR_META_LOCAL_DIMMING_EXTENSION_NAME,
|
||||
XR_META_BOUNDARY_VISIBILITY_EXTENSION_NAME,
|
||||
};
|
||||
|
||||
for (const auto & i: interaction_profiles)
|
||||
@@ -1478,6 +1479,8 @@ void application::initialize()
|
||||
config.emplace(xr_system_id, xr_session, application::get_config_path() / "client.json");
|
||||
default_config.emplace(xr_system_id, xr_session);
|
||||
|
||||
xr_session.set_boundary_hidden(config->hide_boundary);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
set_usb_networking(config->usb_network);
|
||||
#endif
|
||||
@@ -2124,6 +2127,11 @@ void application::poll_events()
|
||||
spdlog::info(" XR_PASSTHROUGH_STATE_CHANGED_RESTORED_ERROR_BIT_FB");
|
||||
}
|
||||
break;
|
||||
case XR_TYPE_EVENT_DATA_BOUNDARY_VISIBILITY_CHANGED_META: {
|
||||
spdlog::info("Boundary visibility changed to {}", magic_enum::enum_name(e.boundary_visibility_changed.boundaryVisibility));
|
||||
xr_session.on_boundary_visibility_changed(e.boundary_visibility_changed.boundaryVisibility);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
spdlog::info("Received event type {}", xr::to_string(e.header.type));
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user