moved renderer to separate thread, add evenio and start structure, make it so you can add stuff

This commit is contained in:
2024-06-11 01:47:05 -04:00
parent 7d48ac5a9c
commit 149c5a2659
35 changed files with 1125 additions and 487 deletions

View File

@@ -1,12 +1,13 @@
use client::Client;
use client::ClientApp;
use winit::event_loop::EventLoop;
mod client;
mod util;
mod world;
fn main() {
let event_loop = EventLoop::new().expect("Failed to create event loop");
event_loop
.run_app(&mut Client::new())
.run_app(&mut ClientApp::new())
.expect("Failed to run event loop");
}