X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.h;h=f1b126e5f28b9be9f8b67cba978fe3cd270359d6;hb=bb4878674a36456e85b10dc2607444caba597528;hp=2eefe41bad80fe1886cb72431e9993853cf614aa;hpb=7cce89d92d1cad302190a9de1f3f1d0780655c29;p=16.git diff --git a/src/lib/bitmap.h b/src/lib/bitmap.h index 2eefe41b..f1b126e5 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 *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);