[Freeciv-Dev] Re: (PR#8215) win32 client: draw_fog_part doesn't use a ma
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8215 >
James Canete wrote:
> I actually wanted to use the new crop_sprite() to combine the old
> fog_sprite with sprite_mask, but my first attempt didn't work and I
> figured it's faster as is anyway.
This is a possible solution. The drawback is that you need almost twice
as many sprites since each mapview sprite has a regular and a fog sprite.
The advantage is that you can fog via alpha-layer drawing rather than
via stippling. Just draw a 50% (or so) alpha-layer black rectangle over
the entire sprite, without changing the mask. This is what gui-SDL does
(except it *doesn't* duplicate the sprites but uses a hack to do the
drawing).
jason
|
|