SpriteFrameCacheTest: test for PixelFormat

This commit is contained in:
Mikhail Shulepov 2016-02-12 19:06:16 +03:00
parent 15f0aaa598
commit c26fe122ad
23 changed files with 618 additions and 0 deletions

View File

@ -677,6 +677,9 @@
1AC35DF818CEE65B00F37B72 /* pew-pew-lei.wav in Resources */ = {isa = PBXBuildFile; fileRef = 1AC35CC418CED84500F37B72 /* pew-pew-lei.wav */; };
1F33634F18E37E840074764D /* RefPtrTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1F33634D18E37E840074764D /* RefPtrTest.cpp */; };
1F33635018E37E840074764D /* RefPtrTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1F33634D18E37E840074764D /* RefPtrTest.cpp */; };
27C5CE011C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 27C5CDFF1C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp */; };
27C5CE021C6E0470000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 27C5CDFF1C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp */; };
27C5CE031C6E0477000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 27C5CDFF1C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp */; };
29080D1C191B574B0066F8DF /* UITest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D1A191B574B0066F8DF /* UITest.cpp */; };
29080D1D191B574B0066F8DF /* UITest.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D1A191B574B0066F8DF /* UITest.cpp */; };
29080D8D191B595E0066F8DF /* CocosGUIScene.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 29080D1F191B595E0066F8DF /* CocosGUIScene.cpp */; };
@ -2443,6 +2446,8 @@
1D6058910D05DD3D006BFB54 /* cpp-tests Mac.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "cpp-tests Mac.app"; sourceTree = BUILT_PRODUCTS_DIR; };
1F33634D18E37E840074764D /* RefPtrTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RefPtrTest.cpp; sourceTree = "<group>"; };
1F33634E18E37E840074764D /* RefPtrTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RefPtrTest.h; sourceTree = "<group>"; };
27C5CDFF1C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = SpriteFrameCacheTest.cpp; sourceTree = "<group>"; };
27C5CE001C6E0469000CA4B3 /* SpriteFrameCacheTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpriteFrameCacheTest.h; sourceTree = "<group>"; };
29080D1A191B574B0066F8DF /* UITest.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = UITest.cpp; path = UITest/UITest.cpp; sourceTree = "<group>"; };
29080D1B191B574B0066F8DF /* UITest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = UITest.h; path = UITest/UITest.h; sourceTree = "<group>"; };
29080D1F191B595E0066F8DF /* CocosGUIScene.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CocosGUIScene.cpp; sourceTree = "<group>"; };
@ -3607,6 +3612,7 @@
A5030C3219D059AB000E78E7 /* OpenURLTest */,
1AC35B1C18CECF0C00F37B72 /* ZwoptexTest */,
1AC35C6F18CECF0C00F37B72 /* VibrateTest */,
27C5CDFE1C6E043D000CA4B3 /* SpriteFrameCacheTest */,
);
name = Classes;
path = "../tests/cpp-tests/Classes";
@ -4763,6 +4769,15 @@
name = tests;
sourceTree = "<group>";
};
27C5CDFE1C6E043D000CA4B3 /* SpriteFrameCacheTest */ = {
isa = PBXGroup;
children = (
27C5CDFF1C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp */,
27C5CE001C6E0469000CA4B3 /* SpriteFrameCacheTest.h */,
);
path = SpriteFrameCacheTest;
sourceTree = "<group>";
};
29080D17191B571F0066F8DF /* UITest */ = {
isa = PBXGroup;
children = (
@ -7134,6 +7149,7 @@
1AC35C5F18CECF0C00F37B72 /* Paddle.cpp in Sources */,
1AC35BDB18CECF0C00F37B72 /* SceneEditorTest.cpp in Sources */,
1AC35B4B18CECF0C00F37B72 /* BugsTest.cpp in Sources */,
27C5CE011C6E0469000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */,
1AC35C5118CECF0C00F37B72 /* testBasic.cpp in Sources */,
1AC35B7918CECF0C00F37B72 /* EnemyController.cpp in Sources */,
1AC35B6B18CECF0C00F37B72 /* CocosBuilderTest.cpp in Sources */,
@ -7362,6 +7378,7 @@
507B418A1C31BEA60067B53E /* SpriteTest.cpp in Sources */,
507B418B1C31BEA60067B53E /* NewAudioEngineTest.cpp in Sources */,
507B418C1C31BEA60067B53E /* FileUtilsTest.cpp in Sources */,
27C5CE031C6E0477000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */,
507B418D1C31BEA60067B53E /* CustomRootNodeReader.cpp in Sources */,
507B418E1C31BEA60067B53E /* CurlTest.cpp in Sources */,
507B418F1C31BEA60067B53E /* CustomTableViewCell.cpp in Sources */,
@ -7697,6 +7714,7 @@
50921EB01B746D5F00C085CC /* DownloaderTest.cpp in Sources */,
1AC35C5818CECF0C00F37B72 /* TextureCacheTest.cpp in Sources */,
1AC35B6E18CECF0C00F37B72 /* HelloCocosBuilderLayer.cpp in Sources */,
27C5CE021C6E0470000CA4B3 /* SpriteFrameCacheTest.cpp in Sources */,
29080D96191B595E0066F8DF /* CustomParticleWidgetTest.cpp in Sources */,
29080DE0191B595E0066F8DF /* UITextTest.cpp in Sources */,
29080DC0191B595E0066F8DF /* UIPageViewTest_Editor.cpp in Sources */,

View File

@ -0,0 +1,85 @@
/****************************************************************************
Copyright (c) 2012 cocos2d-x.org
Copyright (c) 2013-2014 Chukong Technologies Inc.
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#include "SpriteFrameCacheTest.h"
// enable log
#define COCOS2D_DEBUG 1
USING_NS_CC;
SpriteFrameCacheTests::SpriteFrameCacheTests()
{
ADD_TEST_CASE(SpriteFrameCachePixelFormatTest);
}
SpriteFrameCachePixelFormatTest::SpriteFrameCachePixelFormatTest()
{
const Size screenSize = Director::getInstance()->getWinSize();
infoLabel = Label::create();
infoLabel->setAnchorPoint(Point(0.5f, 1.0f));
infoLabel->setAlignment(cocos2d::TextHAlignment::CENTER);
infoLabel->setPosition(screenSize.width * 0.5f, screenSize.height * 0.7f);
addChild(infoLabel);
// load atlas definition with specified PixelFormat and check that it matches to expected format
loadSpriteFrames("Images/sprite_frames_test/test_A8.plist", Texture2D::PixelFormat::A8);
loadSpriteFrames("Images/sprite_frames_test/test_RGBA8888.plist", Texture2D::PixelFormat::RGBA8888);
loadSpriteFrames("Images/sprite_frames_test/test_AI88.plist", Texture2D::PixelFormat::AI88);
loadSpriteFrames("Images/sprite_frames_test/test_RGBA8888.plist", Texture2D::PixelFormat::RGBA8888);
loadSpriteFrames("Images/sprite_frames_test/test_RGB565.plist", Texture2D::PixelFormat::RGB565);
loadSpriteFrames("Images/sprite_frames_test/test_RGB888.plist", Texture2D::PixelFormat::RGB888);
loadSpriteFrames("Images/sprite_frames_test/test_RGBA4444.plist", Texture2D::PixelFormat::RGBA4444);
loadSpriteFrames("Images/sprite_frames_test/test_RGBA5551.plist", Texture2D::PixelFormat::RGB5A1);
#if CC_TARGET_PLATFORM == CC_PLATFORM_IOS || CC_TARGET_PLATFORM == CC_PLATFORM_MAC
loadSpriteFrames("Images/sprite_frames_test/test_PVRTC2.plist", Texture2D::PixelFormat::PVRTC2A);
loadSpriteFrames("Images/sprite_frames_test/test_PVRTC4.plist", Texture2D::PixelFormat::PVRTC4A);
loadSpriteFrames("Images/sprite_frames_test/test_PVRTC2_NOALPHA.plist", Texture2D::PixelFormat::PVRTC2);
#endif
// test loading atlases wihtout PixelFormat specified
Texture2D::setDefaultAlphaPixelFormat(Texture2D::PixelFormat::RGB5A1);
loadSpriteFrames("Images/sprite_frames_test/test_NoFormat.plist", Texture2D::PixelFormat::RGB5A1);
// restore default alpha pixel format
Texture2D::setDefaultAlphaPixelFormat(Texture2D::PixelFormat::RGBA8888);
}
void SpriteFrameCachePixelFormatTest::loadSpriteFrames(const std::string &file, cocos2d::Texture2D::PixelFormat expectedFormat)
{
SpriteFrameCache::getInstance()->addSpriteFramesWithFile(file);
SpriteFrame *spriteFrame = SpriteFrameCache::getInstance()->getSpriteFrameByName("grossini.png");
Texture2D *texture = spriteFrame->getTexture();
const ssize_t bitsPerKB = 8 * 1024;
const double memorySize = 1.0 * texture->getBitsPerPixelForFormat() * texture->getContentSizeInPixels().width * texture->getContentSizeInPixels().height / bitsPerKB;
CC_ASSERT(texture->getPixelFormat() == expectedFormat);
const std::string textureInfo = StringUtils::format("%s: %.2f KB\r\n", texture->getStringForFormat(), memorySize);
infoLabel->setString(infoLabel->getString() + textureInfo);
SpriteFrameCache::getInstance()->removeSpriteFramesFromFile(file);
Director::getInstance()->getTextureCache()->removeTexture(texture);
}

View File

@ -0,0 +1,47 @@
/****************************************************************************
Copyright (c) 2013 cocos2d-x.org
http://www.cocos2d-x.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
****************************************************************************/
#pragma once
#include "cocos2d.h"
#include "../BaseTest.h"
DEFINE_TEST_SUITE(SpriteFrameCacheTests);
class SpriteFrameCachePixelFormatTest : public TestCase
{
public:
CREATE_FUNC(SpriteFrameCachePixelFormatTest);
virtual std::string title() const override { return "Pixel formats test"; }
virtual std::string subtitle() const override { return "It shouldn't crash"; }
SpriteFrameCachePixelFormatTest();
private:
void loadSpriteFrames(const std::string &file, cocos2d::Texture2D::PixelFormat expectedFormat);
private:
cocos2d::Label *infoLabel;
};

View File

@ -102,6 +102,7 @@ public:
addTest("UserDefault", []() { return new UserDefaultTests(); });
addTest("Vibrate", []() { return new VibrateTests(); });
addTest("Zwoptex", []() { return new ZwoptexTests(); });
addTest("SpriteFrameCache", []() { return new SpriteFrameCacheTests(); });
}
};

View File

@ -91,5 +91,6 @@
#include "UserDefaultTest/UserDefaultTest.h"
#include "VibrateTest/VibrateTest.h"
#include "ZwoptexTest/ZwoptexTest.h"
#include "SpriteFrameCacheTest/SpriteFrameCacheTest.h"
#endif

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>A8</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_A8.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:367f3e272a713cfa37f7149eaffe4d1b:ef6b77cb31cb9547aa403602c0e428cd:2afcf9dba9167e18b12a7edf43109b00$</string>
<key>textureFileName</key>
<string>test_A8.png</string>
</dict>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 351 B

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<true/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>AI88</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_AI88.png</string>
<key>size</key>
<string>{114,79}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:220661ac202739d5ab8ea5f365702a23:ef6b77cb31cb9547aa403602c0e428cd:c7432bd93722b9d782c25fdc837740b2$</string>
<key>textureFileName</key>
<string>test_AI88.png</string>
</dict>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 663 B

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>PVRTC2</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_PVRTC2.pvr</string>
<key>size</key>
<string>{128,128}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:a0efbcf50a4c56a8f243e4beb96a30e1:ef6b77cb31cb9547aa403602c0e428cd:4bb41f9429a45a071fc102c0fbf27f4e$</string>
<key>textureFileName</key>
<string>test_PVRTC2.pvr</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>PVRTC2_NOALPHA</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_PVRTC2_NOALPHA.pvr</string>
<key>size</key>
<string>{128,128}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:b662a313de4b747f938ced2fe8d6accc:ef6b77cb31cb9547aa403602c0e428cd:fd9dcbc75e8562058fbd5b87154dd341$</string>
<key>textureFileName</key>
<string>test_PVRTC2_NOALPHA.pvr</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>PVRTC4</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_PVRTC4.pvr</string>
<key>size</key>
<string>{128,128}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:360eedec25e674f9b901672ff165b590:ef6b77cb31cb9547aa403602c0e428cd:dc03f2079a0d593234df9b6d46fd3d10$</string>
<key>textureFileName</key>
<string>test_PVRTC4.pvr</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGB565</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGB888</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGBA4444</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGBA5551</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGBA5555</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

View File

@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>frames</key>
<dict>
<key>grossini.png</key>
<dict>
<key>aliases</key>
<array/>
<key>spriteOffset</key>
<string>{-1,-1}</string>
<key>spriteSize</key>
<string>{77,111}</string>
<key>spriteSourceSize</key>
<string>{85,121}</string>
<key>textureRect</key>
<string>{{1,1},{77,111}}</string>
<key>textureRotated</key>
<false/>
</dict>
</dict>
<key>metadata</key>
<dict>
<key>pixelFormat</key>
<string>RGBA8888</string>
<key>format</key>
<integer>3</integer>
<key>realTextureFileName</key>
<string>test_RGBA8888.png</string>
<key>size</key>
<string>{79,113}</string>
<key>smartupdate</key>
<string>$TexturePacker:SmartUpdate:ad29d611fceadf8c409f092951e97e43:ef6b77cb31cb9547aa403602c0e428cd:71e039f5bf43cb7bf0081ac402bb1084$</string>
<key>textureFileName</key>
<string>test_RGBA8888.png</string>
</dict>
</dict>
</plist>

Binary file not shown.

After

Width:  |  Height:  |  Size: 796 B