foo
[mdlife] / tools / pngdump / tiles.h
1 #ifndef TILES_H_
2 #define TILES_H_
3
4 #include "image.h"
5
6 struct tilemap {
7         int width, height;
8         int *map;
9 };
10
11 int img2tiles(struct tilemap *tmap, struct image *img, int tw, int th, int dedup);
12 int dump_tilemap(struct tilemap *tmap, const char *fname);
13
14 #endif  /* TILES_H_ */