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

Image: More cleanup and reduced code duplication #98100

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

BlueCube3310
Copy link
Contributor

Depends on #98084

This PR reduces code duplication in the Image class (mostly for mipmap generation), and optimizes detecting color channels.

Copy link
Member

@Calinou Calinou left a comment

Choose a reason for hiding this comment

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

Code looks good to me.

This refactor will be helpful if we decide to implement more mipmap generation filters in the future 🙂

@BlueCube3310 BlueCube3310 force-pushed the image-cleanup-more branch 2 times, most recently from 9dfe0a3 to 2848d75 Compare December 3, 2024 15:24
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me.

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Dec 12, 2024
@akien-mga akien-mga merged commit 1e1e862 into godotengine:master Dec 12, 2024
20 checks passed
@akien-mga
Copy link
Member

Thanks!

@BlueCube3310 BlueCube3310 deleted the image-cleanup-more branch December 12, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants