diff --git a/src/gui.rs b/src/gui.rs index fd5092a..9f055e6 100644 --- a/src/gui.rs +++ b/src/gui.rs @@ -40,6 +40,12 @@ impl EventLoopWrapper { } } +impl Default for EventLoopWrapper { + fn default() -> Self { + Self::new() + } +} + pub struct Gui<'a> { // imgui imgui: imgui::Context, @@ -259,7 +265,7 @@ type OnDraw = unsafe extern "C" fn(ui: &imgui::Ui); #[no_mangle] pub extern "C" fn GUICreateEventLoop() -> Box { - let event_loop = EventLoopWrapper::new(); + let event_loop = EventLoopWrapper::default(); Box::new(event_loop) } diff --git a/src/gui/wgpu_renderer.rs b/src/gui/wgpu_renderer.rs index f2bc744..ea1f5d6 100644 --- a/src/gui/wgpu_renderer.rs +++ b/src/gui/wgpu_renderer.rs @@ -1,7 +1,6 @@ use crate::gui::{EventLoopWrapper, Frame}; use fast3d::output::RCPOutput; -use fast3d::rdp::OutputDimensions; -use fast3d_wgpu_renderer::defines::{PipelineConfig, PipelineId}; + use fast3d_wgpu_renderer::wgpu_device::WgpuGraphicsDevice; const DEPTH_FORMAT: wgpu::TextureFormat = wgpu::TextureFormat::Depth32Float;