[Freeciv-Dev] Re: zoom
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 29 Oct 2001, Raimar Falke wrote:
> How many zoom levels are this? How many sprites? Do you use a gdk/gtk
> method or a selfmade?
I use gtk_scale_sprite - the same I used when scaling the flag sprites
for the players report. So its "selfmade" ;)
At initializing time, scaled tiles/unit/city/etc-sprites are created
for all zooom levels. Currently this is handled by a define which sets
the minimum tilewidth, for example 15. Lets assume tileset is trident
(30x30), then 15 zoomn levels will be calculated (29x29, 28x28, ...
15 x 15).
After that, all that is needed to actualy zoom is to exchange pointers,
change a few variables and redraw map. Zooming itself is pretty smooth.
Initialization takes a few seconds.
Ingo
--
Karl-Ingo Friese
kif@xxxxxxxxxxxxxxxxxxxxxxxxxx
- [Freeciv-Dev] zoom, Karl-Ingo Friese, 2001/10/29
- [Freeciv-Dev] Re: zoom, Raimar Falke, 2001/10/29
- [Freeciv-Dev] Re: zoom, Karl-Ingo Friese, 2001/10/29
- [Freeciv-Dev] Re: zoom, Jason Dorje Short, 2001/10/29
- [Freeciv-Dev] Re: zoom, Jason Dorje Short, 2001/10/29
- [Freeciv-Dev] Re: zoom, Karl-Ingo Friese, 2001/10/30
- [Freeciv-Dev] Re: zoom, Karl-Ingo Friese, 2001/10/31
|
|