X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2Fbitmap.h;h=5ba53c818e7c83e09e4065024ede4884ccd09ee7;hb=fd22359b3cf8abccf814365b79906b15a98c8e4e;hp=4c4af98eb04e2cb87502a704cc08966c75b6e712;hpb=7b204788231612250d286ca317dd942b78da91b6;p=16.git diff --git a/16/modex16/bitmap.h b/16/modex16/bitmap.h index 4c4af98e..5ba53c81 100755 --- a/16/modex16/bitmap.h +++ b/16/modex16/bitmap.h @@ -4,20 +4,38 @@ #ifndef BITMAP_H #define BITMAP_H #include "types.h" +typedef struct { + byte *data; + word width; + word height; + byte *palette; + word offset; +} bitmap_t; +/* typedef struct { byte *data; word width; word height; byte *palette; } bitmap_t; +*/ +typedef struct { + byte far **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 **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 */ + 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; +*/ bitmap_t bitmapLoadPcx(char *filename); tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);