Rename AppWindow to App
This commit is contained in:
		
							parent
							
								
									54005f7c0a
								
							
						
					
					
						commit
						a9e0547f5a
					
				|  | @ -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); | ||||
|  |  | |||
|  | @ -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(); | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue