[Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
<URL: http://rt.freeciv.org/Ticket/Display.html?id=8299 >
Jason Short wrote:
> In the hard way we convert the GUI position to a "native" gui position.
> The native position is aligned natively to the freeciv map, but
> preserves pixel resolution so that each tile is of size
> NORMAL_TILE_WIDHT*NORMAL_TILE_HEIGHT. We can then wrap this position
> directly before converting it back to a gui position. Attached patch
> "B" does this. The disadvantage is that this is hard: it takes more
> code than the above method, the math is hard to follow, and the very
> concept of "gui-native" coordinates is a bit bizarre. The advantage is
> that it is a more flexible design: gui-native coordinates can be used to
> do just about any topological operation needed on GUI coordinates while
> preserving pixel resolution (for instance a gui_distance_vector()
> function would be just a few lines).
>
> I'm not sure which method is better.
IMO this method is better. There are several other useful things we can
do with gui-native coordinates.
jason
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates,
Jason Short <=
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, rwetmore@xxxxxxxxxxxx, 2004/03/25
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, Jason Short, 2004/03/25
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, rwetmore@xxxxxxxxxxxx, 2004/03/25
- [Freeciv-Dev] [Fwd: Returned mail: see transcript for details ... Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, rwetmore@xxxxxxxxxxxx, 2004/03/25
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, rwetmore@xxxxxxxxxxxx, 2004/03/25
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, Jason Short, 2004/03/25
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, rwetmore@xxxxxxxxxxxx, 2004/03/26
- [Freeciv-Dev] Re: (PR#8299) wrapping GUI coordinates, Jason Short, 2004/03/26
|
|