WINIT WINDOW!!!!

This commit is contained in:
Chance 2024-12-01 20:50:11 -05:00
parent 9176ac48a0
commit 78a980c9c3
4 changed files with 62 additions and 2 deletions

View file

@ -1,3 +1,16 @@
pub mod commands;
pub mod repl;
pub mod splash;
pub mod renderer;
use anyhow::Result;
use renderer::App;
use winit::event_loop::{ControlFlow, EventLoop};
pub fn init_render() -> Result<()> {
let event_loop = EventLoop::new().unwrap();
event_loop.set_control_flow(ControlFlow::Poll);
let mut app = App::default();
Ok(event_loop.run_app(&mut app)?)
}