Hello people,
I have a question about correctly using the alpha channel in 32bpp: How
do I make the per-pixel alpha work, instead of the per-surface alpha?
Thing is, I correctly read the 32bpp TGA files - that is, I get
all the pixel components right, and use SDL_MapRGBA to fill in the image
buffer. I then use SDL_CreateRGBSurfaceFrom to create the SDL surface.
Well, if I call SDL_SetAlpha for that surface, the entire surface gets
affected, instead of a per-pixel effect. Any pointers here? BTW, the
SDL_CreateRGBSurfaceFrom is being called with all the color masks set to
0.
Thanks in advance,
Miguel Osorio.