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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user