aboutsummaryrefslogtreecommitdiff
path: root/client/src/main.rs
blob: 8373db980f358965e2077ca85e3e470a1cfca36e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use anyhow::Result;
use client::Client;
use window::WindowState;
use winit::event_loop::EventLoop;

pub mod client;
pub mod renderer;
pub mod window;

fn main() -> Result<()> {
    env_logger::init_from_env("LOG");

    Client::new()?;

    let evloop = EventLoop::new()?;
    evloop.run_app(&mut WindowState::new())?;

    Ok(())
}