[SDL] Alpha Channel
Mattias Engdegård
f91-men at nada.kth.se
Sat Apr 7 09:32:19 PDT 2001
> Ok, but here's the catch: this whole dummy-surface thing doesn't look
>like the most elegant thing to do, so I was wondering: is there a way to
>specify the screen surface's masks ?
No, since that's defined by the hardware and it is usually not changeable.
It is unclear what you are trying to do, but the easiest way to read image
files (TGA or any other format) is to use IMG_Load() from SDL_image, and
then convert them to a format quickly blittable to the screen by calling
SDL_DisplayFormat() or SDL_DisplayFormatAlpha()
More information about the SDL
mailing list