1
0
mirror of https://github.com/emilk/egui.git synced 2026-09-01 06:10:06 -04:00

Introduce ViewportInfo

This commit is contained in:
Konkitoman
2023-11-08 07:29:00 +02:00
parent 0d7c87836c
commit 12f3782721
12 changed files with 102 additions and 106 deletions

View File

@@ -47,13 +47,15 @@ impl EguiGlow {
/// Call [`Self::paint`] later to paint.
pub fn run(&mut self, window: &winit::window::Window, run_ui: impl FnMut(&egui::Context)) {
let raw_input = self.egui_winit.take_egui_input(window);
let raw_input = self
.egui_winit
.take_egui_input(window, ViewportIdPair::ROOT);
let egui::FullOutput {
platform_output,
textures_delta,
shapes,
..
} = self.egui_ctx.run(raw_input, ViewportIdPair::ROOT, run_ui);
} = self.egui_ctx.run(raw_input, run_ui);
self.egui_winit.handle_platform_output(
window,