This commit is contained in:
griffi-gh 2023-02-10 00:57:57 +01:00
parent 06e94ccb46
commit 6354d8bab4

View file

@ -128,14 +128,15 @@ fn after_frame_end() -> Workload {
} }
fn main() { fn main() {
//Init env_logger
logging::init(); logging::init();
//Create event loop
let event_loop = EventLoop::new();
//Create a shipyard world //Create a shipyard world
let mut world = World::new(); let mut world = World::new();
//Create event loop
let event_loop = EventLoop::new();
//Add systems and uniques, Init and load things //Add systems and uniques, Init and load things
world.add_unique_non_send_sync(Renderer::init(&event_loop)); world.add_unique_non_send_sync(Renderer::init(&event_loop));
world.add_unique(BackgroundColor(vec3(0.5, 0.5, 1.))); world.add_unique(BackgroundColor(vec3(0.5, 0.5, 1.)));