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

Implement custom blend modes #1439

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Hominilupoid
Copy link

@Hominilupoid Hominilupoid commented Oct 11, 2024

Implements the possibility to compose custom blend modes through a builder type. Additionally removes some transmutes and unnecessary try_froms from conversions from u32 to BlendMode and cleans out some bindgen-generated related code in sdl2-sys.

enum BlendMode now has one additional variant for representing custom blend modes, which technically constitutes a breaking change, even though likely quite a marginal one in real-world use.

Addresses issue #878.

@@ -9,6 +9,8 @@ when upgrading from a version of rust-sdl2 to another.

[PR #1407](https://github.com/Rust-SDL2/rust-sdl2/pull/1407) Add new use_ios_framework for linking to SDL2.framework on iOS

[PR #1439](https://github.com/Rust-SDL2/rust-sdl2/pull/1439) **BREAKING CHANGE** Implement custom blend modes
Copy link
Author

@Hominilupoid Hominilupoid Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be marked Maybe breaking change by the same criteria as #1156 in v0.35.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant