Skip to content

Conversation

eXpl0it3r
Copy link
Member

With #177 we've implemented sfTexture_resize, but the function takes a bool for switching between RGB and non-RGB, which is counter to the sfTexture_createX methods that each have their own sRGB versions.

There are two ways forward:

  • Merge the createX and createSrgbX methods
  • Split the resize method

I believe the reason for the separate functions are two fold:

  • Adding functionality without API break
  • C doesn't know of default parameter values, so method duplication is the answer

This PR chooses the method split, so one doesn't need to always provide the boolean.

@dogunbound
Copy link
Contributor

Hmm, can't seem to find the approval button on GitHub mobile. This is my approval :)

1 similar comment
@dogunbound
Copy link
Contributor

Hmm, can't seem to find the approval button on GitHub mobile. This is my approval :)

@eXpl0it3r eXpl0it3r merged commit a800f76 into master Aug 31, 2025
62 checks passed
@eXpl0it3r eXpl0it3r deleted the feature/texture-resize-srgb branch August 31, 2025 15:26
@eXpl0it3r eXpl0it3r added this to the 3.0.0 milestone Sep 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants