SDL_ttf surface transparency

Hi Folks

Does anyone know how to convert the “background” (i.e. non-text part) of a surface returned by TTF_RenderText to transparent?

Many Thanks
Ed___________________________________________________________
Yahoo! Mail is the world’s favourite email. Don’t settle for less, sign up for
your free account today http://uk.rd.yahoo.com/evt=44106/*http://uk.docs.yahoo.com/mail/winter07.html

Edward Byard wrote:

Hi Folks

Does anyone know how to convert the “background” (i.e. non-text part) of a
surface returned by TTF_RenderText to transparent?

Isn’t that what TTF_RenderText_Blended is meant for?

Edward Byard <e_byard yahoo.co.uk> writes:

Hi FolksDoes anyone know how to convert the “background” (i.e. non-text part)
of a surface returned by TTF_RenderText to transparent?Many ThanksEd

Hi Edward,

Check out SDL_SetColorKey. It might do the trick for you.

-J