2013-04-02 55 views
0

我的版本:cocos2dx-0.13.0-wp8-0.8 我的代碼是:不加載pvr.ccz cocos2dx爲WP8

CCTexture2D::PVRImagesHavePremultipliedAlpha(true); 
    CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("Towers/TArrow-hd.plist", "Towers/TArrow-hd.pvr.ccz"); 
    CCSpriteFrame* frame = CCSpriteFrameCache::sharedSpriteFrameCache()- >spriteFrameByName("Arrow-13.png"); 
CCSprite *sp = CCSprite::spriteWithSpriteFrame(frame); 
sp->setPosition(ccp(100,100)); 
this->addChild(sp, 1); 

運行到「CCSprite * SP = CCSprite :: spriteWithSpriteFrame (框架)」,有異常, spriteWithSpriteFrameName( 「」)也

例外:

D3D11 WARNING: Process is terminating. Using simple reporting. Please call ReportLiveObjects() at runtime for standard reporting. [ STATE_CREATION WARNING #0: UNKNOWN] 

線程0xba4已經退出,代碼3段(0x3)。 D3D11警告:Live Producer 0x00B987E0,Refcount:6. [STATE_CREATION WARNING#0:UNKNOWN] 線程0x668已退出,代碼爲3(0x3)。 線程0x20已退出,代碼爲3(0x3)。 D3D11警告:在0x00B9A530,引用計數活對象:1. [STATE_CREATION警告#0:未知] D3D11警告:在0x02CC17F8,引用計數活對象:0。[STATE_CREATION警告#0:未知]

回答

0

變化pvr.ccz png,沒關係