X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=16%2Fmodex16%2Fbitmap.h;h=c25474934ab7e05fffd1115371f712a574c5f86d;hb=e8708918d29a425379a2c93ccc4ae0c974741338;hp=4c4af98eb04e2cb87502a704cc08966c75b6e712;hpb=7b204788231612250d286ca317dd942b78da91b6;p=16.git diff --git a/16/modex16/bitmap.h b/16/modex16/bitmap.h index 4c4af98e..c2547493 100755 --- a/16/modex16/bitmap.h +++ b/16/modex16/bitmap.h @@ -4,20 +4,42 @@ #ifndef BITMAP_H #define BITMAP_H #include "types.h" + +#ifndef BITMAPT +#define BITMAPT +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; +*/ +#endif bitmap_t bitmapLoadPcx(char *filename); tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);