mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-27 17:45:53 +00:00
Simplify struct name
This commit is contained in:
parent
f0bddb564f
commit
0154fe729d
@ -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,
|
||||
|
@ -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 {}")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user