1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2024-09-19 22:14:48 +01:00
notnotdnethack/win/share/tile.h
Ron Nazarov 34aaaf57e1
Replace FDECL, NDECL, VDECL, and E macros with their definitions
E as in the alias for extern, not the completely different E that's an
alias for EXPLOSION used in objects.c.
2024-05-06 00:28:05 +01:00

40 lines
818 B
C

typedef unsigned char pixval;
typedef struct {
pixval r, g, b;
} pixel;
#define MAXCOLORMAPSIZE 256
#define CM_RED 0
#define CM_GREEN 1
#define CM_BLUE 2
/* shared between reader and writer */
extern pixval ColorMap[3][MAXCOLORMAPSIZE];
extern int colorsinmap;
/* writer's accumulated colormap */
extern pixval MainColorMap[3][MAXCOLORMAPSIZE];
extern int colorsinmainmap;
#include "dlb.h" /* for MODEs */
/* size of tiles */
#ifndef TILE_X
#define TILE_X 16
#endif
#ifndef TILE_Y
#define TILE_Y 16
#endif
#define Fprintf (void) fprintf
extern boolean fopen_text_file(const char *, const char *);
extern boolean read_text_tile(pixel (*)[TILE_X]);
extern boolean write_text_tile(pixel (*)[TILE_X]);
extern int fclose_text_file(void);
extern void init_colormap(void);
extern void merge_colormap(void);