Complete.Org: Mailing Lists: Archives: freeciv-dev: March 2004:
[Freeciv-Dev] Re: (PR#8215) win32 client: draw_fog_part doesn't use a ma
Home

[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]
To: use_less@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#8215) win32 client: draw_fog_part doesn't use a mask
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 24 Mar 2004 10:57:11 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8215 >

Jason Short wrote:
> <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).

Err, what I'm talking about is generating the sprite ahead of time, or 
generating it just once and then keeping it in memory.

jason




[Prev in Thread] Current Thread [Next in Thread]