[SDL] SDL_Image and PNG support
masonwheeler at yahoo.com
Wed Nov 2 10:31:44 PDT 2011
...huh? SDL_Image has had PNG support for years.
From: VernJensen <vern at actionsoft.com>
Subject: [SDL] SDL_Image and PNG support
I'm attempting to add PNG support to SDL_Image, but have so far been unsuccessful. Got the lpng155 package from the libpng page (http://www.libpng.org/pub/png/libpng.html), and modified the SDL_Image 1.2.10 (http://www.libsdl.org/projects/SDL_image/) Visual Studio project to have this linker flag:
That is because the DLL produced by the png155 package is named as above. I recompile the SDL_Image.dll and copy it to my project's Visual Studio Release and Debug folders.
However, my test program still fails to load .png images, while .bmp load fine. (IMG_Load_RW returns NULL, while SDL_RWFromFile does indeed have a file pointer.) This seems to indicate that SDL_Image is still does not "know" it has PNG support available to it via libpng15.dll.
Am I doing something wrong, in the way I'm trying to give SDL_Image access to PNG loading?
SDL mailing list
SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL