This commit is contained in:
STP
2023-11-10 10:23:11 -05:00
parent 2f2ebb3824
commit eb5d866ade
3 changed files with 2089 additions and 42 deletions

View File

@@ -1,4 +1,14 @@
fn main() {
println!("Hello world");
}
use winit::{
event::*,
event_loop::{ControlFlow, EventLoop},
window::WindowBuilder,
};
fn main() {
env_logger::init(); // Necessary for logging within WGPU
let event_loop = EventLoop::new(); // Loop provided by winit for handling window events
let window = WindowBuilder::new().build(&event_loop).unwrap();
// Opens the window and starts processing events (although no events are handled yet)
event_loop.run(move |event, _, control_flow| {});
}