Remove the is_closed function
This commit is contained in:
parent
eb73c2514e
commit
39128dd7e1
17 changed files with 72 additions and 176 deletions
|
|
@ -28,10 +28,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,
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue