This commit is contained in:
Maximilian Ammann 2021-12-09 16:53:49 +01:00
parent c14c7a5874
commit d2b2abc827
2 changed files with 1 additions and 18 deletions

View File

@ -8,9 +8,7 @@
<option name="emulateTerminal" value="false" />
<option name="withSudo" value="false" />
<option name="backtrace" value="SHORT" />
<envs>
<env name="RUSTFLAGS" value="--cfg=web_sys_unstable_apis" />
</envs>
<envs />
<option name="isRedirectInput" value="false" />
<option name="redirectInputPath" value="" />
<method v="2">

View File

@ -1,6 +1,3 @@
use winit::event_loop::EventLoop;
use winit::window::WindowBuilder;
mod fps_meter;
mod platform;
mod render;
@ -9,15 +6,3 @@ mod setup;
#[cfg(target_arch = "wasm32")]
mod web;
fn main() {
env_logger::init_from_env(env_logger::Env::default().default_filter_or("info"));
let event_loop = EventLoop::new();
let window = WindowBuilder::new()
.with_title("A fantastic window!")
.build(&event_loop)
.unwrap();
pollster::block_on(setup::setup(window, event_loop));
}