Complete.Org: Mailing Lists: Archives: freeciv-dev: August 1999:
Re: [Freeciv-Dev] Hex tileset
Home

Re: [Freeciv-Dev] Hex tileset

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: Freeciv Dev <freeciv-dev@xxxxxxxxxxxx>
Subject: Re: [Freeciv-Dev] Hex tileset
From: Artur Biesiadowski <abies@xxxxxxxxx>
Date: Thu, 26 Aug 1999 17:12:58 +0200

Jules Bean wrote:

> 
> The obvious drawing order is, for each hex, to draw the actual hex
> first, and then draw all bits of adjacent hexes which overlap
> (presumably transparent).  Finally, if implement, draw the 'on top'
> layer (mountains, etc.)

Let's take squres for simplicty. On of them is

 xxx
 xx

second 
yyy
 yy

You have following layout

......
.xxyy.
.xxyy.
......

Should you get

a)
......
.xxxy.
.xxyy.
......

or

b)
......
.xyyy.
.xxyy.
......

?


It depends on painting order. With left to right order you get b always.
With repaint myself then the neighbours you will get random one,
dependent on which part of screen needs refresh (possibly even mixed
pixels for toolkits that do strict clipping and unfortunate repaint
requests will come)

Artur


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