[SDL] Create a transparent surface?

L-28C kixdemp at gmail.com
Wed Jun 6 22:20:40 PDT 2007


Hello everyone!

I was wondering how to create a transparent surface (alpha 0). 
SDL_CreateRGBSurface fills it black, but I'm blitting tiles to this 
surface, and whenever I blit that to the screen the black background 
shows up...

Anyonw know how to do this? Thanks!

(Can't use color keys because my tiles have black in them... maybe I can 
fill it with, say, magenta?)



More information about the SDL mailing list