Bindings for some missing parts of the raw SDL2 API #205
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Namely the functions SDL_ComposeCustomBlendMode and the associated enums,
SDL_GetWindowBordersSize, and SDL_GetDisplayUsableBounds.
I ran into an issue combining Cairo and SDL2 where I needed the custom blending mode. Cairo outputs texture data which uses pre-multiplied alpha, but SDL built-in blending modes do not support this. So blending two anti-aliased cairo-generated textures with SDL2 looks really bad by default, too dark around the edges. It works (on OSX) if you make a custom blending mode that implements the formulas
Perhaps we're holding off on 2.0.6 support for some reason. Though I was surprised to see SDL_GetWindowBordersSize and SDL_GetDisplayUsableBounds missing, which were supposedly added in SDL 2.0.5.
Sorry I did not do a diff for all the missing API. These are just the things I ran into trying to make some graphics.