]> Pileus Git - grits/blobdiff - src/objects/gis-tile.h
Add texture coords to tiles
[grits] / src / objects / gis-tile.h
index 98052c69abb821d4f7b2634891e59abc523f8f7d..c912b5a171ef507e67aa02ecae1650a5610c65e8 100644 (file)
@@ -38,10 +38,14 @@ struct _GisTile {
        /* Pointer to the tile data */
        gpointer data;
 
+       /* Drawing order */
+       gint zindex;
+
        /* North,South,East,West limits */
-       struct {
-               gdouble n,s,e,w;
-       } edge;
+       GisBBox edge;
+
+       /* Texture mapping coordinates */
+       GisBBox coords;
 
        /* Pointers to parent/child nodes */
        GisTile *parent;
@@ -112,10 +116,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 */