Commit Graph

3 Commits

Author SHA1 Message Date
halx99 554412f4fd Use struct `Vec2` instead `Size` 2021-10-23 23:27:14 +08:00
rh101 c60f66c9bb Use integer identifier for sprite sheet format.
Revert method name addSpriteFramesWithFileAndTexture back to addSpriteFramesWithFile
2021-08-17 14:04:45 +10:00
RH 2c0f04c99b Support custom texture atlas formats (#284)
* Allow support for custom texture atlas formats other than PLIST.

* Revert usage of emplace_back to push_back to ensure support for older compilers.

* Update test to support SpriteFrameCache::addSpriteFramesWithFile

* Re-add SpriteFrameCache::addSpriteFramesWithFileContent

* Change order of SpriteFramesFromFileContent test back to what it previously was

* Remove sprite sheet and all frames associated with it correctly

* Move sprite loader classes into their own files to clean up CCSpriteFrameCache

* Remove redundant line and update comment

* Fix formatting to match adxe code style

* Fix typo

* Add custom sprite sheet loader test using JSON-array sprite atlas format.
Simplify sprite sheet loader interface by adding identifier to the custom sprite sheet loader implementation.

* Add newline at the end of the file
2021-08-13 14:52:58 +08:00