leinus
February 19, 2014, 1:47am
#1
If i running on device … have some trouble
u can see attached file.
so what’s the main reason of this happening?
Android version? OpenGL Version? or… CocoStudio bug?
My cocos2d-x version is 2.2 and cocostudio version 1.2.0.1
Please somebody helps me… T_T
Shot1.png (519.6 KB)
Shot1.png (519.6 KB)
Source.png (39.6 KB)
leinus
February 19, 2014, 3:59am
#2
The problem is solved…
if CCSpriteFrameCacheHelper class’s CCTextureAtlas capacity set to large number than loading sprite parts count.
but … i can’t understand why?
is anyone there teach me the reason?
CCTextureAtlas *CCSpriteFrameCacheHelper::getTexureAtlasWithTexture(CCTexture2D *texture)
{
int key = texture->getName();
CCTextureAtlas *atlas = (CCTextureAtlas *)m_pTextureAtlasDic->objectForKey(key);
if (atlas == NULL)
{
//Leinus
//atlas = CCTextureAtlas::createWithTexture(texture, 4);
atlas = CCTextureAtlas::createWithTexture(texture, 64);
m_pTextureAtlasDic->setObject(atlas, key);
}
return atlas;
}