Closed GoogleCodeExporter closed 8 years ago
you should better use CCTextureCache.sharedTextureCache().addImage for image
loading. And HEY, you are using old version. See wiki.
Original comment by opengen...@gmail.com
on 14 Feb 2011 at 4:07
When application pauses OpenGL is destroyed. Then all Images should be
reloaded. Now this is managed for textures loaded with CCTextureCache. If you
are loading them manually you have do it somehow (with
GLResourceHelper.sharedHelper().addLoader for example). CCTextureCache as I
know is working with assets paths only. Use assets and CCTextureCache if you
can. Latest version of cocos2d doesn't have CCTexture2D(Bitmap) constructor.
Original comment by opengen...@gmail.com
on 14 Feb 2011 at 4:17
Working perfectly after applying recommendations.
Wasn't aware of the sharedTextureCache. The new implementation utilizes it
along with the addExternalImage method in the build I synced up with today.
I don't believe using assets is an option for me as I would like to allow users
the ability to upload their own skins to the game. Are users allowed to
add/delete/modify asset files?
Thanks for your help. Please close the bug.
Original comment by petero...@gmail.com
on 15 Feb 2011 at 2:41
Working perfectly after applying recommendations.
Wasn't aware of the sharedTextureCache. The new implementation utilizes it
along with the addExternalImage method in the build I synced up with today.
I don't believe using assets is an option for me as I would like to allow users
the ability to upload their own skins to the game. Are users allowed to
add/delete/modify asset files?
Thanks for your help. Please close the bug.
Original comment by petero...@gmail.com
on 15 Feb 2011 at 2:41
No, assets are closed for user.
Original comment by opengen...@gmail.com
on 15 Feb 2011 at 9:51
Original issue reported on code.google.com by
petero...@gmail.com
on 14 Feb 2011 at 2:29