From a9e0547f5aafbaa4d9c347bd3205e18696285792 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Fri, 7 Apr 2023 19:53:52 +0100 Subject: [PATCH] Rename AppWindow to App --- src/app.rs | 4 ++-- src/main.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app.rs b/src/app.rs index 1352d1a..629bbc2 100644 --- a/src/app.rs +++ b/src/app.rs @@ -6,14 +6,14 @@ use winit::{ use crate::renderer; -pub(crate) struct AppWindow { +pub(crate) struct App { window: winit::window::Window, event_loop: EventLoop<()>, render_ctx: renderer::RenderContext, renderer: renderer::Renderer, } -impl AppWindow { +impl App { pub async fn new(width: u32, height: u32, title: &str) -> Self { log::info!("Initialising window..."); let size = PhysicalSize::new(width, height); diff --git a/src/main.rs b/src/main.rs index b60d93a..bd0b6f6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,5 +3,5 @@ mod renderer; fn main() { env_logger::init(); - pollster::block_on(app::AppWindow::new(1280, 720, "Epic")).run(); + pollster::block_on(app::App::new(1280, 720, "Epic")).run(); }