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

Added App::clear_color() that apps can use to specify background color

This commit is contained in:
Emil Ernerfeldt
2020-12-18 22:34:48 +01:00
parent 9ea8d907fd
commit c3c4f28a9d
6 changed files with 33 additions and 11 deletions

View File

@@ -111,7 +111,13 @@ pub fn run(mut storage: Box<dyn egui::app::Storage>, mut app: Box<dyn App>) -> !
let frame_time = (Instant::now() - egui_start).as_secs_f64() as f32;
previous_frame_time = Some(frame_time);
painter.paint_jobs(&display, ctx.pixels_per_point(), paint_jobs, &ctx.texture());
painter.paint_jobs(
&display,
ctx.pixels_per_point(),
app.clear_color(),
paint_jobs,
&ctx.texture(),
);
{
let egui::app::AppOutput {