Skip to content

Commit fd9b9f0

Browse files
committed
Add initial draft of section on glutin and winit
1 parent 7b65c8c commit fd9b9f0

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

content/news/023/index.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,43 @@ projects. Pure Rust Vulkan allocators with support for erupt have been released.
224224
[erupt]: https://gitlab.com/Friz64/erupt
225225
[@Friz64]: https://blog.friz64.de/about
226226

227+
### [glutin] (and [winit])
228+
229+
![Animated image showing a window that is opened with a spinning cursor on top](winit-bug-1.gif)
230+
_This cursor may be waiting in vain, but your patience shall be rewarded._
231+
232+
[glutin] is a low-level library for OpenGL context creation, written in pure Rust.
233+
[glutin] uses and re-exports [winit], which handles window creation and management,
234+
as well as various input devices.
235+
236+
glutin 0.27.0 makes glutin use the latest version of winit (0.25.0), which was
237+
released around a month prior to glutin 0.27.0. Usually, we try to keep glutin
238+
synced with winit, but we couldn't quite manage to do it this time since the person
239+
who'd usually take responsibility for releasing a new version of glutin was
240+
unavailable, and no-one had the role of "back-up releaser". [@maroider] has offered
241+
to fill this role for now.
242+
243+
The upgrade to winit 0.25.0 brings with it a slew of bufixes, a couple of new
244+
features, and a single breaking change to
245+
[`WindowBuilderExtMacOS::with_activation_policy`], which has been replaced by
246+
[`EventLoopExtMacOS::set_activation_policy`].
247+
248+
Notable new features include [`Window::drag_window`], [`Window::is_maximized`], and
249+
a default menu bar on macOS. We also fixed a couple of long-standing bugs in winit
250+
on Windows that we're sure many of you have noticed. In fact, one of them is
251+
displayed in the gif at the top of this section: sometimes, the "wait" cursor would
252+
be displayed upon the initial creation of the window, even though there was nothing
253+
to "wait" for. For a full list of changes, refer to [winit's changelog].
254+
255+
[glutin]: https://github.com/rust-windowing/glutin
256+
[winit]: https://github.com/rust-windowing/winit
257+
[@maroider]: https://github.com/maroider
258+
[`WindowBuilderExtMacOS::with_activation_policy`]: https://docs.rs/winit/0.24.0/x86_64-apple-darwin/winit/platform/macos/trait.WindowBuilderExtMacOS.html#tymethod.with_activation_policy
259+
[`EventLoopExtMacOS::set_activation_policy`]: https://docs.rs/winit/0.25.0/x86_64-apple-darwin/winit/platform/macos/trait.EventLoopExtMacOS.html#tymethod.set_activation_policy
260+
[`Window::drag_window`]: https://docs.rs/winit/0.25.0/x86_64-apple-darwin/winit/window/struct.Window.html#method.drag_window
261+
[`Window::is_maximized`]: https://docs.rs/winit/0.25.0/x86_64-apple-darwin/winit/window/struct.Window.html#method.is_maximized
262+
[winit's changelog]: https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md#0250-2021-05-15
263+
227264
### [wgpu] family re-union
228265

229266
![wgpu family reunion](wgpu-family-reunion.svg)

content/news/023/winit-bug-1.gif

117 KB
Loading

0 commit comments

Comments
 (0)