draw with wgpu

This commit is contained in:
Chance 2024-12-01 22:58:52 -05:00 committed by BitSyndicate
parent ca80d3d4e2
commit e168f4e93f
Signed by untrusted user: bitsyndicate
GPG key ID: 443E4198D6BBA6DE
4 changed files with 129 additions and 16 deletions

View file

@ -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(())
}