X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=3d0fb2c674916ec112a3c29b9e0e32e0777eb6c2;hb=19d97c4277378f20c6c756981f4123cdc6cbb32b;hp=3f53cd7f7b437334f2c28ce6787f604fa58d33df;hpb=74929b07c8b45a20eb5079444f4df21c9898e605;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 3f53cd7f..3d0fb2c6 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -39,6 +39,30 @@ /* * 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 */