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

Sprite and TextureCache from ax::Data #1967

Merged

Conversation

AlexandreK38
Copy link
Contributor

Describe your changes

Hi!
This PR is an improvement I made for my game, it allows you to create a Sprite from an Image data (ax::Data) and a key to use for the cache.

@paulocoutinhox
Copy link
Contributor

Hi, very nice. Can you add at least one test?

@AlexandreK38
Copy link
Contributor Author

Hi, very nice. Can you add at least one test?

Sure, here they are

core/2d/Sprite.cpp Outdated Show resolved Hide resolved
core/renderer/TextureCache.cpp Outdated Show resolved Hide resolved
@halx99 halx99 added this to the 2.1.4 milestone Jun 6, 2024
@halx99 halx99 added the enhancement New feature or request label Jun 6, 2024
@halx99 halx99 merged commit 79aabfd into axmolengine:dev Jun 6, 2024
12 of 15 checks passed
@AlexandreK38 AlexandreK38 deleted the add_texture_cache_sprite_data_contructor branch February 4, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants