mirror of https://github.com/axmolengine/axmol.git
Added some resources. Updated Texture2dTest.cpp.
This commit is contained in:
parent
aba33b5bda
commit
26a02804d9
|
@ -0,0 +1 @@
|
|||
ecab9afc457e142e9fcb5d7ff4dfd6ef3152e865
|
|
@ -0,0 +1 @@
|
|||
f8b2ca57289d0938dcf7a295f7f404fb2ee71b56
|
|
@ -0,0 +1 @@
|
|||
f65579564b3c7dde5cf1509b7282dcf0f919de87
|
|
@ -0,0 +1 @@
|
|||
418e418cfd4ff613c1af658a02c7cd40b650f05f
|
|
@ -63,6 +63,10 @@ done
|
|||
|
||||
# remove test_image_rgba4444.pvr.gz
|
||||
rm -f $TESTS_ROOT/assets/Images/test_image_rgba4444.pvr.gz
|
||||
rm -f $TESTS_ROOT/assets/Images/test_1021x1024_rgba8888.pvr.gz
|
||||
rm -f $TESTS_ROOT/assets/Images/test_1021x1024_rgb888.pvr.gz
|
||||
rm -f $TESTS_ROOT/assets/Images/test_1021x1024_rgba4444.pvr.gz
|
||||
rm -f $TESTS_ROOT/assets/Images/test_1021x1024_a8.pvr.gz
|
||||
|
||||
# build
|
||||
if [[ $buildexternalsfromsource ]]; then
|
||||
|
|
|
@ -1524,6 +1524,21 @@ void TextureMemoryAlloc::updateImage(cocos2d::CCObject *sender)
|
|||
case 0:
|
||||
file = "Images/test_1021x1024.png";
|
||||
break;
|
||||
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||
// android can not pack .gz file into apk file
|
||||
case 1:
|
||||
file = "Images/test_1021x1024_rgba8888.pvr";
|
||||
break;
|
||||
case 2:
|
||||
file = "Images/test_1021x1024_rgb888.pvr";
|
||||
break;
|
||||
case 3:
|
||||
file = "Images/test_1021x1024_rgba4444.pvr";
|
||||
break;
|
||||
case 4:
|
||||
file = "Images/test_1021x1024_a8.pvr";
|
||||
break;
|
||||
#else
|
||||
case 1:
|
||||
file = "Images/test_1021x1024_rgba8888.pvr.gz";
|
||||
break;
|
||||
|
@ -1536,6 +1551,7 @@ void TextureMemoryAlloc::updateImage(cocos2d::CCObject *sender)
|
|||
case 4:
|
||||
file = "Images/test_1021x1024_a8.pvr.gz";
|
||||
break;
|
||||
#endif
|
||||
}
|
||||
|
||||
m_pBackground = CCSprite::create(file.c_str());
|
||||
|
|
Loading…
Reference in New Issue