[SDL] Loading alpha-channeled PNGs?

Jukka-Pekka Manninen jmanninen at digitalchocolate.com
Tue Sep 12 22:56:49 PDT 2006


Hi!

 

I think you might be losing your alpha channel here:

 

    mAnim[0].image = SDL_DisplayFormat(temp); SDL_FreeSurface(temp); 



Try using SDL_DisplayFormatAlpha(temp).

 

-- 
Jukka-Pekka Manninen



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060913/34ad9cf3/attachment-0008.htm>


More information about the SDL mailing list