Source:NetHack 3.4.3/include/tile.h

From NetHackWiki
(Redirected from Source:NetHack 3.4.3/tile.h)
Jump to: navigation, search

Below is the full text to win/share/tile.h from NetHack 3.4.3. To link to a particular line, write [[tile.h#line123]], for example.

The NetHack General Public License applies to screenshots, source code and other content from NetHack.

This content was modified from the original NetHack source code distribution (by splitting up NetHack content between wiki pages, and possibly further editing). See the page history for a list of who changed it, and on what dates.

  1. typedef unsigned char pixval;
  2.  
  3. typedef struct {
  4. pixval r, g, b;
  5. } pixel;
  6.  
  7. #define MAXCOLORMAPSIZE		256
  8.  
  9. #define CM_RED          0
  10. #define CM_GREEN	1
  11. #define CM_BLUE		2
  12.  
  13. /* shared between reader and writer */
  14. extern pixval ColorMap[3][MAXCOLORMAPSIZE];
  15. extern int colorsinmap;
  16. /* writer's accumulated colormap */
  17. extern pixval MainColorMap[3][MAXCOLORMAPSIZE];
  18. extern int colorsinmainmap;
  19.  
  20. #include "dlb.h"        /* for MODEs */
  21.  
  22. /* size of tiles */
  23. #ifndef TILE_X
  24. #define TILE_X 16
  25. #endif
  26. #ifndef TILE_Y
  27. #define TILE_Y 16
  28. #endif
  29.  
  30. #define Fprintf (void) fprintf
  31.  
  32.  
  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);
  37.  
  38. extern void NDECL(init_colormap);
  39. extern void NDECL(merge_colormap);
  40.  
  41. #if defined(MICRO) || defined(WIN32)
  42. #undef exit
  43. # if !defined(MSDOS) && !defined(WIN32)
  44. extern void FDECL(exit, (int));
  45. # endif
  46. #endif