Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
Eric Wing
Guest
|
Are you using the ImageIO or UIImage backend? (Sam just grabbed my
ImageIO changes the other day. ImageIO is the recommended path moving forward.) UIImage has real technical limitations w.r.t. RWops. But since the ImageIO backend is new to iOS, you may have discovered a new issue for us. -Eric On 3/30/11, manifest wrote:
-- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
Vittorio G.
Guest
|
Hi Eric,
do you think you could briefly describe what difference will it make to use ImageIO instead of UIImage? Last time i messed with sdl_image imageio was available only on the simulator while uiimage was available only on device; has the situation changed? thanks Vittorio On Wed, Mar 30, 2011 at 6:48 PM, Eric Wing wrote:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||||
|
Re: Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
manifest
|
Thank you for your fast answer, Eric. I used an UIImage backend.
I've built latest version of the SDL_image from repository and my problem was solved
|
|||||||||||||||
|
Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
Eric Wing
Guest
|
On 3/30/11, Vittorio G. wrote:
That wasn't supposed to happen. The reason I wrote the UIImage backend was that iOS originally didn't have ImageIO so we couldn't use it at all. In iOS 4.0, ImageIO became available. According the the statistics I've seen, around 90% of iOS users have upgraded to at least 4.0 (current is 4.3 as of this writing) so I think it is safe to make the default path now. It also solves nasty UIImage limitations with RWops. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
Why IMG_Load_RW returns 0 on an iOS? How to fix it? |
Eric Wing
Guest
|
On 3/30/11, manifest wrote:
Thanks, I'm glad to hear ImageIO is working fine. -Eric -- Beginning iPhone Games Development http://playcontrol.net/iphonegamebook/ _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|