[SDL] SDL_Image and PNG support
vern at actionsoft.com
Wed Nov 2 10:13:07 PDT 2011
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL