Put the tooltips in a different layer

This commit is contained in:
Guillaume Meunier
2026-02-13 17:26:53 +01:00
parent 067d3a7679
commit b5d4f67860
6 changed files with 67 additions and 35 deletions
+11 -1
View File
@@ -1245,7 +1245,17 @@ void scenes::lobby::on_focused()
.vp_origin = {0, 1000},
.vp_size = {1500, 300},
.z_index = constants::lobby::zindex_recenter_tip,
}};
},
{
// Tooltip
.space = xr::spaces::world,
.size = {0.6, 0.08},
.vp_origin = {0, 1300},
.vp_size = {1500, 200},
.tooltip_viewport = true,
.z_index = constants::lobby::zindex_tooltip,
},
};
xr::swapchain swapchain_imgui(instance, session, device, swapchain_format, 3000, 1500);