X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_map.h;h=cd3f934973e594404de32fdfa41701b8ec782d10;hb=5965823c934f177a5ef1cd30ae9ee5dda2a95154;hp=4a9ce9bbc903ae95bb26a1c4db8798a0f5ec5c92;hpb=762357f4a3dc3b6e8bf14e6e13e7df292fe2f4b7;p=16.git diff --git a/src/lib/16_map.h b/src/lib/16_map.h index 4a9ce9bb..cd3f9349 100755 --- a/src/lib/16_map.h +++ b/src/lib/16_map.h @@ -24,28 +24,38 @@ #define _LIBMAPREAD_H_ #include "jsmn/jsmn.h" -#include "stdio.h" -#include "stdlib.h" +//#include "stdio.h" included in 16_head.h +//#include "stdlib.h" included in 16_head.h #include "src/lib/modex16.h" #include "src/lib/16_head.h" +#include "src/lib/16_ca.h" +#include "src/lib/16_mm.h" +//TODO: 16_mm and 16_ca must handle this typedef struct { - bitmap_t huge *btdata; - planar_buf_t huge *data; + bitmap_t huge *btdata; //old + planar_buf_t huge *data; //old word tileHeight; word tileWidth; unsigned int rows; unsigned int cols; +#ifdef __DEBUG__ boolean debug_text; //show the value of the tile! wwww byte *debug_data; +#endif } tiles_t; +//TODO: 16_mm and 16_ca must handle this +//TODO: add variables from 16_ca typedef struct { - byte * huge *data; - tiles_t **tiles; - int width; //this has to be signed! - int height; //this has to be signed! + //long planestart[3]; + //unsigned planelength[3]; + byte * huge *data; //TODO: 16_mm and 16_ca must handle this + tiles_t **tiles; //TODO: 16_mm and 16_ca must handle this + int width, height; //this has to be signed! + char name[16]; } map_t; int loadmap(char *mn, map_t *map); + #endif/*_LIBMAPREAD_H_*/