Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump winit to v0.30 #214

Merged
merged 7 commits into from
May 7, 2024
Merged

Bump winit to v0.30 #214

merged 7 commits into from
May 7, 2024

Conversation

notgull
Copy link
Member

@notgull notgull commented Apr 30, 2024

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

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.

Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
Signed-off-by: John Nunley <[email protected]>
@notgull notgull marked this pull request as ready for review April 30, 2024 01:40
@notgull notgull requested a review from john01dav as a code owner April 30, 2024 01:40
@notgull notgull requested review from ids1024 and daxpedda and removed request for john01dav and ids1024 April 30, 2024 01:40
Cargo.toml Show resolved Hide resolved
Cargo.toml Outdated Show resolved Hide resolved
examples/animation.rs Outdated Show resolved Hide resolved
examples/fruit.rs Outdated Show resolved Hide resolved
examples/rectangle.rs Outdated Show resolved Hide resolved
examples/winit.rs Outdated Show resolved Hide resolved
examples/winit_wrong_sized_buffer.rs Outdated Show resolved Hide resolved
examples/utils/winit_app.rs Outdated Show resolved Hide resolved
@notgull notgull requested a review from daxpedda May 6, 2024 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants