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

egui_glium::run parameter app now has signature Box<dyn App>

This commit is contained in:
Emil Ernerfeldt
2020-12-14 11:24:37 +01:00
parent 0f7a5287b2
commit 09aa905f7c
4 changed files with 9 additions and 7 deletions

View File

@@ -64,11 +64,7 @@ fn create_display(
}
/// Run an egui app
pub fn run(
title: &str,
mut storage: Box<dyn egui::app::Storage>,
mut app: impl App + 'static,
) -> ! {
pub fn run(title: &str, mut storage: Box<dyn egui::app::Storage>, mut app: Box<dyn App>) -> ! {
let window_settings: Option<WindowSettings> =
egui::app::get_value(storage.as_ref(), WINDOW_KEY);
let event_loop = glutin::event_loop::EventLoop::with_user_event();