mirror of https://github.com/axmolengine/axmol.git
commit
b4cb43913b
|
@ -22,6 +22,8 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# remove test_image_rgba4444.pvr.gz
|
||||||
|
rm -f $TESTS_ROOT/assets/Images/test_image_rgba4444.pvr.gz
|
||||||
|
|
||||||
# build
|
# build
|
||||||
pushd $ANDROID_NDK_ROOT
|
pushd $ANDROID_NDK_ROOT
|
||||||
|
|
|
@ -609,7 +609,12 @@ void TexturePVRRGBA4444GZ::onEnter()
|
||||||
TextureDemo::onEnter();
|
TextureDemo::onEnter();
|
||||||
CCSize s = CCDirector::sharedDirector()->getWinSize();
|
CCSize s = CCDirector::sharedDirector()->getWinSize();
|
||||||
|
|
||||||
|
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
|
||||||
|
// android can not pack .gz file into apk file
|
||||||
|
CCSprite *img = CCSprite::spriteWithFile("Images/test_image_rgba4444.pvr");
|
||||||
|
#else
|
||||||
CCSprite *img = CCSprite::spriteWithFile("Images/test_image_rgba4444.pvr.gz");
|
CCSprite *img = CCSprite::spriteWithFile("Images/test_image_rgba4444.pvr.gz");
|
||||||
|
#endif
|
||||||
img->setPosition(ccp( s.width/2.0f, s.height/2.0f));
|
img->setPosition(ccp( s.width/2.0f, s.height/2.0f));
|
||||||
addChild(img);
|
addChild(img);
|
||||||
CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo();
|
CCTextureCache::sharedTextureCache()->dumpCachedTextureInfo();
|
||||||
|
|
Loading…
Reference in New Issue