diff --git a/crates/fj-viewer/src/graphics/renderer.rs b/crates/fj-viewer/src/graphics/renderer.rs index 0b78bbe5e..8e52a5b6e 100644 --- a/crates/fj-viewer/src/graphics/renderer.rs +++ b/crates/fj-viewer/src/graphics/renderer.rs @@ -9,7 +9,7 @@ use wgpu_glyph::ab_glyph::InvalidFont; use crate::{ camera::Camera, - gui::EguiState, + gui::Gui, screen::{Screen, Size}, }; @@ -37,7 +37,7 @@ pub struct Renderer { pipelines: Pipelines, /// State required for integration with `egui`. - pub egui: EguiState, + pub egui: Gui, } impl Renderer { @@ -151,7 +151,7 @@ impl Renderer { let pipelines = Pipelines::new(&device, &bind_group_layout, color_format); - let egui = EguiState::new(&device, surface_config.format); + let egui = Gui::new(&device, surface_config.format); Ok(Self { surface, diff --git a/crates/fj-viewer/src/gui.rs b/crates/fj-viewer/src/gui.rs index 102fbab82..3d9e5fe35 100644 --- a/crates/fj-viewer/src/gui.rs +++ b/crates/fj-viewer/src/gui.rs @@ -23,13 +23,13 @@ pub struct EguiOptionsState { pub show_inspection_ui: bool, } -pub struct EguiState { +pub struct Gui { pub context: egui::Context, pub render_pass: egui_wgpu::renderer::RenderPass, pub options: EguiOptionsState, } -impl EguiState { +impl Gui { pub fn new( device: &wgpu::Device, texture_format: wgpu::TextureFormat, @@ -76,7 +76,7 @@ impl EguiState { } } -impl std::fmt::Debug for EguiState { +impl std::fmt::Debug for Gui { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_str("EguiState {}") }