]> Pileus Git - grits/blobdiff - src/objects/gis-tile.h
Add z-index to tiles
[grits] / src / objects / gis-tile.h
index 98052c69abb821d4f7b2634891e59abc523f8f7d..e2b72524f53d430e4c12cf0746bccb809e905e4e 100644 (file)
@@ -38,10 +38,11 @@ struct _GisTile {
        /* Pointer to the tile data */
        gpointer data;
 
+       /* Pointer to the tile data */
+       gint zindex;
+
        /* North,South,East,West limits */
-       struct {
-               gdouble n,s,e,w;
-       } edge;
+       GisBBox edge;
 
        /* Pointers to parent/child nodes */
        GisTile *parent;
@@ -112,10 +113,9 @@ GisTile *gis_tile_new(GisTile *parent,
 gchar *gis_tile_get_path(GisTile *child);
 
 /* Update a root tile */
-/* Based on eye distance (lat,lon,elev) */
-void gis_tile_update(GisTile *root,
+/* Based on eye distance */
+void gis_tile_update(GisTile *root, GisPoint *eye,
                gdouble res, gint width, gint height,
-               gdouble lat, gdouble lon, gdouble elev,
                GisTileLoadFunc load_func, gpointer user_data);
 
 /* Find the leaf tile containing lat-lon */