248 #ifndef MAPGEN_H #define MAPGEN_H #include "mapview.h" typedef struct { double maxlat, minlat, maxlon, minlon; } MGSEGDICT; typedef struct mgmaprec { POINT *pts; unsigned short npts; double minlat, maxlat, minlon, maxlon; struct mgmaprec *next; } MGMAPREC; typedef struct mgmap { int type; unsigned long color, fillcolor; int width; struct mgmap *next; MGMAPREC *recs; } MGMAP; void drawmapgen(MGMAP *map); MGMAP *loadmapgen(char *fname, unsigned long color, unsigned long fillcolor, int width); #endif . 0