1 /* NetHack 3.6 tile.h $NHDT-Date: 1432512803 2015/05/25 00:13:23 $ $NHDT-Branch: master $:$NHDT-Revision: 1.10 $ */
2 typedef unsigned char pixval;
4 typedef struct pixel_s {
8 #define MAXCOLORMAPSIZE 256
14 /* shared between reader and writer */
15 extern pixval ColorMap[3][MAXCOLORMAPSIZE];
16 extern int colorsinmap;
17 /* writer's accumulated colormap */
18 extern pixval MainColorMap[3][MAXCOLORMAPSIZE];
19 extern int colorsinmainmap;
21 #include "dlb.h" /* for MODEs */
31 #define Fprintf (void) fprintf
33 extern boolean FDECL(fopen_text_file, (const char *, const char *));
34 extern boolean FDECL(read_text_tile, (pixel(*) [TILE_X]));
35 extern boolean FDECL(write_text_tile, (pixel(*) [TILE_X]));
36 extern int NDECL(fclose_text_file);
38 extern void NDECL(init_colormap);
39 extern void NDECL(merge_colormap);
41 #if defined(MICRO) || defined(WIN32)
43 #if !defined(MSDOS) && !defined(WIN32)
44 extern void FDECL(exit, (int));