The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
Transparency SDL_CreateRGBSurface (SDL-1.2)
Mantis
Joined: 04 May 2012
Posts: 9
Posted: Sun Sep 22, 2013 4:06 pm
Hello, I need make a transparent surface, blit a surface with loaded image to this and blit all to window, but fail.
If I make with the mask (0, 0, 0, 0) I get black surface (it is clear), else (0xff000000, 0x00ff0000, 0x0000ff00, 0x000000ff) I get nothing.
What I must?