Rename AppWindow to App

This commit is contained in:
Jarrod Doyle 2023-04-07 19:53:52 +01:00
parent 54005f7c0a
commit a9e0547f5a
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
2 changed files with 3 additions and 3 deletions

View File

@ -6,14 +6,14 @@ use winit::{
use crate::renderer; use crate::renderer;
pub(crate) struct AppWindow { pub(crate) struct App {
window: winit::window::Window, window: winit::window::Window,
event_loop: EventLoop<()>, event_loop: EventLoop<()>,
render_ctx: renderer::RenderContext, render_ctx: renderer::RenderContext,
renderer: renderer::Renderer, renderer: renderer::Renderer,
} }
impl AppWindow { impl App {
pub async fn new(width: u32, height: u32, title: &str) -> Self { pub async fn new(width: u32, height: u32, title: &str) -> Self {
log::info!("Initialising window..."); log::info!("Initialising window...");
let size = PhysicalSize::new(width, height); let size = PhysicalSize::new(width, height);

View File

@ -3,5 +3,5 @@ mod renderer;
fn main() { fn main() {
env_logger::init(); env_logger::init();
pollster::block_on(app::AppWindow::new(1280, 720, "Epic")).run(); pollster::block_on(app::App::new(1280, 720, "Epic")).run();
} }