X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.h;h=31b944380a9002c4b097af62c1ff6eb73338910d;hb=f8aa708d074bbb922c6bdc481f9909c2ffd6274a;hp=2eefe41bad80fe1886cb72431e9993853cf614aa;hpb=7cce89d92d1cad302190a9de1f3f1d0780655c29;p=16.git diff --git a/src/lib/bitmap.h b/src/lib/bitmap.h index 2eefe41b..31b94438 100644 --- a/src/lib/bitmap.h +++ b/src/lib/bitmap.h @@ -2,21 +2,24 @@ * Functions and types for loading and manipulating bitmaps. */ #ifndef BITMAP_H -#define BITMAP_H -#include "src\lib\types.h" +#define BITMAP_H +#include "src/lib/types.h" +#include "src/lib/lib_head.h" + typedef struct { - byte *data; - word width; - word height; - byte *palette; + byte far *data; + word width; + word height; + byte *palette; + word offset; } bitmap_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 */ + 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 */ } tileset_t; bitmap_t bitmapLoadPcx(char *filename);