Dim the main window when a popup is shown

This commit is contained in:
Guillaume Meunier
2024-11-01 11:40:33 +01:00
parent 9cdea8c49f
commit 8e4088280e
5 changed files with 292 additions and 139 deletions
+2 -1
View File
@@ -758,6 +758,7 @@ void application::initialize()
opt_extensions.push_back(XR_EXT_PALM_POSE_EXTENSION_NAME);
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_DEPTH_EXTENSION_NAME);
opt_extensions.push_back(XR_FB_COMPOSITION_LAYER_DEPTH_TEST_EXTENSION_NAME);
opt_extensions.push_back(XR_KHR_COMPOSITION_LAYER_COLOR_SCALE_BIAS_EXTENSION_NAME);
for (const auto & i: interaction_profiles)
{
@@ -797,7 +798,7 @@ void application::initialize()
spdlog::info(" Vendor ID: {:#x}", properties.vendorId);
spdlog::info(" System name: {}", properties.systemName);
spdlog::info(" Graphics properties:");
spdlog::info(" Maximum swapchain image size: {}x{}", properties.graphicsProperties.maxSwapchainImageWidth, properties.graphicsProperties.maxSwapchainImageWidth);
spdlog::info(" Maximum swapchain image size: {}x{}", properties.graphicsProperties.maxSwapchainImageWidth, properties.graphicsProperties.maxSwapchainImageHeight);
spdlog::info(" Maximum layer count: {}", properties.graphicsProperties.maxLayerCount);
spdlog::info(" Tracking properties:");
spdlog::info(" Orientation tracking: {}", (bool)properties.trackingProperties.orientationTracking);