Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve TextureAtlas parsing, store name/value pairs per region (#6316)
* Changed TextureAtlas parsing to store unrecognized values as name/value pairs. Moved split and pad to name/value pairs. Changed TexturePacker to omit entries that are default values and write a pma entry for each page. * Default original size to packed size. Comment field map sizes. * Javadoc typo. * Spaces before commas. * Added bounds/offsets entries to reduce the number of entries needed per region. * Use equalsIgnoreCase when comparing entry values. * Check the index first, which is cheaper. * Skip sorting regions when there are no indexes. * Added CHANGES entry for #6316. * Added a pretty print texture packer setting, enabled by default. * Added a legacy output setting. * Mentioned the legacyOutput setting in CHANGES. * Filter used by issue_pack wasn't GWT-compatible. * Fixed mipmaps not being created when the min filter needs them (fixes AtlasIssueTest). * Default legacyOutput to true. * Added optional header entries. * Set default for Page#format field. * Ignore values after the 4th. * Ignore non-int values for unknown region entries. * Revert change to issue_pack, since the issue was fixed. And fixed in a more thorough way, too. * CHANGES entry for AtlasRegion breaking change. * CHANGES for Region too. * BSpline#calculate, throw if degree is not 3, javadoc. #6313 * Clean up. Set the texture on the page rather than using a map. * Move TextureAtlasData member class to end of TextureAtlas. Drives my OCD nuts to put member classes at the top. * Bunch of clean up. * Reuse region names/values arrays. * Initialize index to -1 by default. * Comments to note deprecated fields. * Use @null. * 1024 BufferedReader size. * Don't need to store index comparator on a field. * Changed equalsIgnoreCase to equals. Most of the format is case sensitive so seemed odd to ignore case only in some places. * Use ensureCapacity for textures and regions collections. * Clean up wonky texture initialization. * Don't need a static field for reading the entry, plus it wasn't thread safe.
- Loading branch information
1 parent
3c9a574
commit a4a0240
Showing
8 changed files
with
456 additions
and
302 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
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.