X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=3d0fb2c674916ec112a3c29b9e0e32e0777eb6c2;hb=fc090d29b950fe136302c31aef9b0b267467396f;hp=b7dc2fa9a7a3ae89462434b47b216b761cc7203a;hpb=f31e09e4be70ced5efbf4394d7ee5eb66d3bae47;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index b7dc2fa9..3d0fb2c6 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -25,9 +25,44 @@ #include "src/lib/types.h" + +#define AARED "\x1b[41;31m" +#define AABLUE "\x1b[44;34m" +#define AAGREEN "\x1b[42;32m" +#define AAYELLOW "\x1b[43;33m" +#define AAGREY "\x1b[47;37m" +#define AABLACK "\x1b[40;30m" +#define AAWHITE "\x1b[47;37m" +#define AAMAGENTA "\x1b[45;35m" +#define AARESET "\x1b[0m" + /* * typedefs of the game variables! */ +typedef struct { + byte huge *data; + word width; + word height; + byte *palette; + word offset; +} bitmap_t; + +typedef struct { + byte huge **data; + word ntiles; /* the number of tiles */ + word twidth; /* width of the tiles */ + word theight; /* height of the tiles */ + byte *palette; /* palette for the tile set */ +} tileset_t; + +typedef struct { + byte huge *plane[4]; /* 4 planes of image data */ + word width; /* width of the image (spread across 4 planes) */ + word height; /* height of the image (spread across 4 planes) */ + word pwidth; /* the number of bytes in each plane */ + byte *palette; +} planar_buf_t; + typedef struct { word id; /* the Identification number of the page~ For layering~ */ byte far* data; /* the data for the page */