sdl@lists.libsdl.org
[Top] [All Lists]

Re: [SDL] Transparency problems

Subject: Re: [SDL] Transparency problems
From:
Date: Sun, 13 Jan 2008 14:07:16 +0000
Quoting fued <kronerone@xxxxxxxxxxx>:

> Hi im trying to display tiles as transparent, and it just isnt making any
> colours transparent at all, here is the code im using:
>

i'm not sure i can be of much help here but as no-one has anwsered for a while
i'll try and point you in the right direction..

you need to be absoulutley sure that the image surface you are using 
has exactly
the right colour as you are trying to make transparent, and that it has a
suitable pallette / bpp depth to do so.

at a glance i cant see anything that might be wrong with your code.. 
but i could
be wrong ;)

i have had issues in the past similar to this.. these days i just always use
high colour png's, and just use black, white or full pink as a mask colour.

I would suspect the problem lies with your source images.


_______________________________________________
SDL mailing list
SDL@xxxxxxxxxxxxxxxx
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

<Prev in Thread] Current Thread [Next in Thread>