**************************************************************************/
+#ifndef _TILEUTILS_H
+#define _TILEUTILS_H
+
+
struct bucket {
int lon; /* longitude (-180 to 179) */
int lat; /* latitude (-90 to 89) */
3 bits - to represent x (0 to 7)
3 bits - to represent y (0 to 7) */
-/* static long gen_index(struct bucket *p); */
+long int gen_index(struct bucket *p);
/* Parse a unique scenery tile index and find the lon, lat, x, and y */
-/* static void parse_index(long int index, struct bucket *p); */
+void parse_index(long int index, struct bucket *p);
/* Build a path name from an tile index */
-void gen_path(long int index, char *path);
+void gen_base_path(struct bucket *p, char *path);
/* offset an bucket struct by the specified amounts in the X & Y direction */
-/* static void offset_bucket(struct bucket *in, struct bucket *out, int x, int y); */
+void offset_bucket(struct bucket *in, struct bucket *out, int x, int y);
/* Given a lat/lon, find the "bucket" or tile that it falls within */
/* Given a lat/lon, fill in the local tile index array */
-void gen_idx_array(struct bucket *p1, long int *tiles,
+void gen_idx_array(struct bucket *p1, struct bucket *tiles,
int width, int height);
+#endif /* _TILEUTILS_H */
+
+
/* $Log$
-/* Revision 1.2 1998/01/08 02:22:28 curt
-/* Continue working on basic features.
+/* Revision 1.6 1998/01/22 02:59:42 curt
+/* Changed #ifdef FILE_H to #ifdef _FILE_H
/*
+ * Revision 1.5 1998/01/14 02:19:05 curt
+ * Makde offset_bucket visible to outside.
+ *
+ * Revision 1.4 1998/01/13 00:23:12 curt
+ * Initial changes to support loading and management of scenery tiles. Note,
+ * there's still a fair amount of work left to be done.
+ *
+ * Revision 1.3 1998/01/10 00:01:48 curt
+ * Misc api changes and tweaks.
+ *
+ * Revision 1.2 1998/01/08 02:22:28 curt
+ * Continue working on basic features.
+ *
* Revision 1.1 1998/01/07 23:50:52 curt
* "area" renamed to "tile"
*