/* Projection used by tile data */
GritsProj proj;
+
+ /* Internal data to the tile */
+ guint tex;
+ GdkPixbuf *pixbuf;
+ guchar *pixels;
+ gint width;
+ gint height;
+ gint alpha;
};
struct _GritsTileClass {
gdouble res, gint width, gint height,
GritsTileLoadFunc load_func, gpointer user_data);
+/* Load tile data from pixel buffer */
+gboolean grits_tile_load_pixels(GritsTile *tile, guchar *pixels,
+ gint width, gint height, gint channels);
+
+/* Load tile data from a GdkPixbuf */
+gboolean grits_tile_load_pixbuf(GritsTile *tile, GdkPixbuf *pixbuf);
+
+/* Load tile data from an image file */
+gboolean grits_tile_load_file(GritsTile *tile, const gchar *file);
+
/* Find the leaf tile containing lat-lon */
GritsTile *grits_tile_find(GritsTile *root, gdouble lat, gdouble lon);