Skip to content

Commit

Permalink
Refactor: move code around in eframe (#3575)
Browse files Browse the repository at this point in the history
`run.rs` was getting way too long and complex.
emilk authored Nov 19, 2023
1 parent a23b959 commit 960b01b
Showing 7 changed files with 2,538 additions and 2,534 deletions.
2 changes: 1 addition & 1 deletion crates/eframe/src/epi.rs
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ use std::any::Any;

#[cfg(not(target_arch = "wasm32"))]
#[cfg(any(feature = "glow", feature = "wgpu"))]
pub use crate::native::run::UserEvent;
pub use crate::native::winit_integration::UserEvent;

#[cfg(not(target_arch = "wasm32"))]
use raw_window_handle::{
2 changes: 2 additions & 0 deletions crates/eframe/src/native/epi_integration.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Common tools used by [`super::glow_integration`] and [`super::wgpu_integration`].
use std::time::Instant;

use winit::event_loop::EventLoopWindowTarget;
Loading

0 comments on commit 960b01b

Please sign in to comment.