[SDL] Loading alpha-channeled PNGs?
dark.guy.2008 at gmail.com
Tue Sep 12 21:57:29 PDT 2006
Thanks for answering :)
Well something must be going wrong here then, look:
The image has alpha channel as you can notice in the PSP window, and in the
SDL, it doesn't seem to get it. That's what happens when I remove the
SDL_SetColorKey instruction. Any idea? =/
On 9/13/06, Ryan C. Gordon <icculus at icculus.org> wrote:
> > Somehow I'm missing something here. My question is: Anybody knows how to
> > load the PNG file, and use the Alpha channel as the transparency one,
> > and not a RGB 0,0,0 color key as if it was a plain 8-bit image?
> > Thanks in advance :)
> Just don't use a color key...the PNG should retain its alpha channel in
> the surface that IMG_Load() returns.
> SDL mailing list
> SDL at libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL