forked from nonsensical-dev/zenyx-engine
draw with wgpu
This commit is contained in:
parent
ca80d3d4e2
commit
e168f4e93f
4 changed files with 129 additions and 16 deletions
|
@ -1,4 +1,3 @@
|
|||
|
||||
use anyhow::Result;
|
||||
use log2::info;
|
||||
|
||||
|
@ -6,17 +5,16 @@ pub mod core;
|
|||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<()> {
|
||||
let _log2 = log2::open("z.log").tee(true).level("trace").start();
|
||||
let _log2 = log2::open("z.log").tee(true).level("debug").start();
|
||||
info!("Initalizing Engine");
|
||||
let shell_thread = tokio::task::spawn(async {
|
||||
info!("Shell thread started");
|
||||
core::repl::handle_repl().await;
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
core::splash::print_splash();
|
||||
info!("Engine Initalized");
|
||||
core::init_render()?;
|
||||
core::init_renderer()?;
|
||||
shell_thread.await?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue