mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 13:50:04 -04:00
Context::begin_frame() no longer returns anything.
Put your widgets into a `SidePanel`, `TopPanel`, `Window` or into `ctx.background_ui()`.
This commit is contained in:
@@ -77,8 +77,8 @@ pub fn run(
|
||||
native_pixels_per_point: Some(native_pixels_per_point(&display)),
|
||||
};
|
||||
|
||||
let mut ui = ctx.begin_frame(raw_input.take());
|
||||
let app_output = app.ui(&mut ui, &backend_info, Some(&mut painter));
|
||||
ctx.begin_frame(raw_input.take());
|
||||
let app_output = app.ui(&ctx, &backend_info, Some(&mut painter));
|
||||
let (egui_output, paint_jobs) = ctx.end_frame();
|
||||
|
||||
let frame_time = (Instant::now() - egui_start).as_secs_f64() as f32;
|
||||
|
||||
Reference in New Issue
Block a user