diff options
author | metamuffin <metamuffin@disroot.org> | 2025-02-23 18:34:28 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-02-23 18:34:28 +0100 |
commit | 57bb47ab1092dac7bffd707f35efa131b9bd99c3 (patch) | |
tree | cfc51622a0a0d324cc08fd849cc6ccf36b24f141 /client/src/main.rs | |
parent | d4c9a59ed41c11bf3edccc37d531da46e4fcd218 (diff) | |
download | twclient-57bb47ab1092dac7bffd707f35efa131b9bd99c3.tar twclient-57bb47ab1092dac7bffd707f35efa131b9bd99c3.tar.bz2 twclient-57bb47ab1092dac7bffd707f35efa131b9bd99c3.tar.zst |
snaps from client are displayed but with timing issues
Diffstat (limited to 'client/src/main.rs')
-rw-r--r-- | client/src/main.rs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/client/src/main.rs b/client/src/main.rs index 5a52620..55969a4 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -1,20 +1,21 @@ +#![feature(random)] use anyhow::Result; use client::Client; +use std::sync::Arc; use window::WindowState; use winit::event_loop::EventLoop; pub mod client; pub mod renderer; -pub mod window; pub mod skin_manager; +pub mod window; fn main() -> Result<()> { env_logger::init_from_env("LOG"); - // Client::new()?; - + let client = Arc::new(Client::new().unwrap()); let evloop = EventLoop::new()?; - evloop.run_app(&mut WindowState::new())?; + evloop.run_app(&mut WindowState::new(client))?; Ok(()) } |