Blit FXs

Hi,
I would know how can I obtain a left-right mirroring of a sprite when I blit
it to a Surface using SDL.
I worked a lot with DX, and it provides a method, BltFX, with a flag that
performs this operation.
But I wasn’t able to find a similar function in SDL libraries. Should I use
OpenGL?

Another question: does SDL_SetColorKey() function provide a
"SDL_DSTCCOLORKEY" flag besides SDL_SRCCOLORKEY? This is another feature
present in DX that I can’t find in SDL.

Thanks,
Randaz

Hi,
I would know how can I obtain a left-right mirroring of a sprite when I blit
it to a Surface using SDL.
I worked a lot with DX, and it provides a method, BltFX, with a flag that
performs this operation.

You have to write a blit function to do this manually.
Actually, one of the many graphics libraries on the SDL library page might
have functions to do it for you: http://www.libsdl.org/libraries.php

Another question: does SDL_SetColorKey() function provide a
"SDL_DSTCCOLORKEY" flag besides SDL_SRCCOLORKEY? This is another feature
present in DX that I can’t find in SDL.

No, SDL doesn’t provide it, in the interests of simplicity. You can write
your own blit function to do it, however.

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment