mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
Remove the is_closed function
This commit is contained in:
10
README.md
10
README.md
@@ -49,12 +49,14 @@ fn main() {
|
||||
gl::ClearColor(0.0, 1.0, 0.0, 1.0);
|
||||
}
|
||||
|
||||
while !window.is_closed() {
|
||||
window.wait_events();
|
||||
|
||||
for event in window.wait_events() {
|
||||
unsafe { gl::Clear(gl::COLOR_BUFFER_BIT) };
|
||||
|
||||
window.swap_buffers();
|
||||
|
||||
match event {
|
||||
glutin::Event::Closed => break,
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user