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

Texture loading and caching: Missing pieces #2111

Merged
merged 26 commits into from
Jun 22, 2024

Conversation

einarf
Copy link
Member

@einarf einarf commented Jun 15, 2024

Reviving this branch from 3 months ago evaluating the state.

einarf added 26 commits March 2, 2024 16:52
This is no longer possible because there is no
longer a single place textures are cached.
Cached hit boxes should only passed in the initializer
We now only have
* load_texture
* load_spritesheet

These simply loads the entire image. The user
can then process the image as needed.

* SpriteSheet has crop methods (most efficient)
* Texture have crop() method (less efficient)
* Rename functions to load_or_get
* Support TextureCacheManager for tilemap
* Update function calls
@einarf einarf marked this pull request as ready for review June 22, 2024 17:13
@einarf einarf merged commit 29c285c into development Jun 22, 2024
9 checks passed
@einarf einarf deleted the loading-textures-default branch June 22, 2024 17:13
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