creating startup environment
This commit is contained in:
2181
Cargo.lock
generated
2181
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -6,8 +6,3 @@ edition = "2021"
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
env_logger = "0.10.1"
|
||||
log = "0.4.20"
|
||||
pollster = "0.3.0"
|
||||
wgpu = "0.18.0"
|
||||
winit = "0.29.3"
|
||||
|
||||
14
src/main.rs
14
src/main.rs
@@ -1,14 +1,6 @@
|
||||
use winit::{
|
||||
event::*,
|
||||
event_loop::{ControlFlow, EventLoop},
|
||||
window::WindowBuilder,
|
||||
};
|
||||
pub mod vec4;
|
||||
|
||||
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| {});
|
||||
println!("Hello world");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user