mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 13:20:06 -04:00
Remove the is_closed function
This commit is contained in:
@@ -46,10 +46,15 @@ fn main() {
|
||||
|
||||
let context = support::load(&window);
|
||||
|
||||
while !window.is_closed() {
|
||||
for event in window.wait_events() {
|
||||
context.draw_frame((0.0, 1.0, 0.0, 1.0));
|
||||
window.swap_buffers();
|
||||
|
||||
println!("{:?}", window.wait_events().next());
|
||||
println!("{:?}", event);
|
||||
|
||||
match event {
|
||||
glutin::Event::Closed => break,
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user