[SDL] Colorkey in SDL 1.3

T-1000 santiago at dragontech.net
Fri Dec 17 06:01:22 PST 2010


Hi there.
I am trying to port a project from SDL 1.2 to SDL 1.3. Everything is going well except when  i try to SDL_CreateTextureFromSurface with a colorkey applied to the surface. The texture is created well but no transparency,  the background color is also displayed.
I am using SDL_Image to load the surfaces.
How can i make the textures transparent, and is it possible to use per pixel alpha loading a .png file?

thanks!




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20101217/99fdfe1f/attachment-0007.htm>


More information about the SDL mailing list