[SDL] Alpha blending transparent PNGs
Cracker
tcracker at vipmail.hu
Sat Oct 20 01:40:39 PDT 2007
Hello everybody!First, I'm sorry if this question was asked already, I've searched, but looks like nobody encountered this problem.In my program, I'm using SDL_DisplayFormatAlpha to convert the loaded image, because I'm using transparent PNGs. I also want to fade in/out these images, but I can't find a way to do that. SDL_SetAlpha works only if I convert the image with SDL_DisplayFormat, so ignoring the PNG's built-in alpha information, but it doesn't seems to work at all if I try to set the alpha value of an image which has built-in transparency. Is there a way to do that? I think it can be done somehow with SDL_GetRGBA/SDL_MapRGBA, but I have no idea.Best Regards,
--------------------------Hirdetés-----------------------------
Egy millió forintos ajánlatÁtlagosan ennyit veszítünk 10 év alatt rossz befektetéseinken. Hogyan kerülheti el Ön?
http://www.portfoliomoney.hu/befektetes.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20071020/991bb1fe/attachment.htm
More information about the SDL
mailing list