Forums » C++ Framework » How to use textureForKey ? ( Bug ? ) »
| Woods Lin | How to use textureForKey ? ( Bug ? ) | ||
|---|---|---|---|
|
Added by Woods Lin over 1 year ago
A question about textureForKey.
textureForKey don't find "catImage". Thank you. |
||
| Bin Zhang | RE: How to use textureForKey ? ( Bug ? ) | ||
|
Added by Bin Zhang over 1 year ago
Thanks for your feedback! The reason of this bug had been discussed in this topic: And we only can fix this bug by modify the key with method CCFileUtil::fullPathFromRelativePath() when CCTextureCache::addUIImage() invoked. Best wishes! |
||
| Minggo Zhang | RE: How to use textureForKey ? ( Bug ? ) | ||
|
Added by Minggo Zhang over 1 year ago
Yes. |
||
| Woods Lin | RE: How to use textureForKey ? ( Bug ? ) | ||
|
Added by Woods Lin over 1 year ago
thanks for help me. And test is ok, I can get the CCTexture2D object. because I own one file call "imageObject.data",then it own many images in the data. so I do:
loadImageFile( "imageObject.data" );
BYTE *rawData = getImageFromIndex( 0 );
BYTE *rawData2 = getImageFromIndex( 1 );
but now "imageName_1" and "imageName_2" can't so use, i must name it call "imageObject.data". May give me some suggestions? thanks. |
(1-3/3)