-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Textures are now stored using the `Texture.atlas_name` meaning we only store textures with different hash-orientation combo. It doesn't care what hitbox algo the texture has. This mean the number of textures in the atlas are always the same as the uv data simplifying things. * Resizing the atlas should no longer clear the image counter * Rebuilding the atlas should now clear the image counter * The atlas will now smartly rebuild itself if images have been removed before attempting to resize * Added an initial ABC class for atlases * Added sanity check in image ref counter raising error on underflow * Fixed the experimenal atlas load/save code * Added various comments to make it easier to inspect the code later
- Loading branch information
Showing
5 changed files
with
132 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.