Move app and camera to core module
This commit is contained in:
parent
a94932836f
commit
230024ac63
|
@ -0,0 +1,4 @@
|
||||||
|
mod app;
|
||||||
|
mod camera;
|
||||||
|
|
||||||
|
pub use self::{app::App, camera::*};
|
|
@ -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,
|
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue