Move app and camera to core module

This commit is contained in:
Jarrod Doyle 2023-04-24 09:28:33 +01:00
parent a94932836f
commit 230024ac63
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
4 changed files with 8 additions and 5 deletions

View File

@ -0,0 +1,4 @@
mod app;
mod camera;
pub use self::{app::App, camera::*};

View File

@ -5,9 +5,10 @@ use winit::{
event_loop::{ControlFlow, EventLoop}, event_loop::{ControlFlow, EventLoop},
}; };
use crate::{camera, render}; use super::camera;
use crate::render;
pub(crate) struct App { pub struct App {
window: winit::window::Window, window: winit::window::Window,
event_loop: EventLoop<()>, event_loop: EventLoop<()>,
render_ctx: render::Context, render_ctx: render::Context,

View File

@ -1,9 +1,7 @@
mod app;
mod camera;
mod core; mod core;
mod render; mod render;
fn main() { fn main() {
env_logger::init(); env_logger::init();
pollster::block_on(app::App::new(1280, 720, "Epic")).run(); pollster::block_on(core::App::new(1280, 720, "Epic")).run();
} }