The only way to load texture assets from native code in Android 2.2 seems to be opening the .apk with libzip and loading the image with libpng, which is what I've done. I've not started with the iOS port yet, but based on some research, it seems that I can just read the textures from storage and load them with libpng there as well.
While this works, it's a lot of code I don't fully understand yet, so I'm wondering if it isn't better to use each platform's canonical means of loading images, namely Bitmap in Android, UIImage in iOS and SDL_image on desktop. That sounds like inviting a bunch of platform-specific bugs though, I like the idea of having as much shared code as possible.
Does anybody have experiences with either approach? Can't decide which one to go with.
Edited by futlib, 01 January 2013 - 03:24 AM.







