-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
Make ImageLoader
take bit field flags
#64776
Make ImageLoader
take bit field flags
#64776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to me.
386c81d
to
672e9d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense and code changes look fine to me.
Since this is ready, I'd prefer we merged 🙃 Shouldn't be hard for @Faless to rebase his PR and expose flags and all that. |
I have no problem rebasing my PR, but shouldn't this use |
@Faless I've references some similar code in the resource saver, I think. I guess |
IMO this stuff could use |
Thanks! |
While working on godotengine/godot-proposals#5034 I concluded that I need to pass more flags to the individual image format loaders from the import settings. Existing method signature supports
force_linear
, and half of the importers don't even use it. So I figured that instead of adding a new flag at the end of the method and growing its list of parameters — it's better to reuse the existing parameter, but convert it to a bit field.This PR doesn't add anything new, just converts the parameter and introduces an enum. I guess that this is compat breaking for modules, but otherwise the classes aren't exposed, I don't think.
This work is kindly sponsored by the Dialogic project.