rust-windowing / softbuffer

Easily write an image to a window
Apache License 2.0
333 stars 48 forks source link

Bump winit to v0.30 #214

Closed notgull closed 6 months ago

notgull commented 7 months ago

This commit bumps winit, which is used in some examples, to version v0.30.

This new version comes with many new changes; mainly the move away from closures towards applications. In order to work with this, I create a simple "winit_app" module that allows the examples to simply and easily create winit applications. It takes two closures: one that initializes some state on resume, and another that handles events.

I've found this approach reduces diff noise by a lot.

Benchmarks still use deprecated functions for now.

WIP for now until I test it