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

[demo] Move backend into an optional panel of WrapApp

This commit is contained in:
Emil Ernerfeldt
2021-01-02 01:01:01 +01:00
parent 3e0bedd96d
commit b3d1016507
7 changed files with 354 additions and 332 deletions

View File

@@ -46,6 +46,7 @@
)]
mod apps;
pub(crate) mod frame_history;
mod wrap_app;
pub use apps::DemoWindows; // used for tests
@@ -96,7 +97,7 @@ fn test_egui_e2e() {
const NUM_FRAMES: usize = 5;
for _ in 0..NUM_FRAMES {
ctx.begin_frame(raw_input.clone());
demo_windows.ui(&ctx, |_ui| {});
demo_windows.ui(&ctx);
let (_output, paint_commands) = ctx.end_frame();
let paint_jobs = ctx.tessellate(paint_commands);
assert!(!paint_jobs.is_empty());