For various reasons, I’d like to use per-sprite and per-pixel alphas.
(Surfaces have transparency not doable via colorkey, and I’d like to be
able to smoothly fade them in / out.) This is apparently not possible with
SDL 1.2. Has this been changed in SDL 2.0?
Yeah, you can use SDL_SetSurfaceAlphaMod() and SDL_SetTextureAlphaMod() to
modulate the alpha of a sprite in addition to its per-pixel alpha values.
Jonny DOn Thu, May 2, 2013 at 11:27 AM, Mark Tilford wrote:
For various reasons, I’d like to use per-sprite and per-pixel alphas.
(Surfaces have transparency not doable via colorkey, and I’d like to be
able to smoothly fade them in / out.) This is apparently not possible with
SDL 1.2. Has this been changed in SDL 2.0?
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org