X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fbitmap.h;h=f1b126e5f28b9be9f8b67cba978fe3cd270359d6;hb=bb4878674a36456e85b10dc2607444caba597528;hp=19ae2f04ebdae05f0d9e20a1cb5bf4d961ad53e9;hpb=1073f7dbfa5b78819af46c64f3ffd0301e9d8cc6;p=16.git diff --git a/src/lib/bitmap.h b/src/lib/bitmap.h index 19ae2f04..f1b126e5 100644 --- a/src/lib/bitmap.h +++ b/src/lib/bitmap.h @@ -3,22 +3,23 @@ */ #ifndef BITMAP_H #define BITMAP_H -//#include -#include "src/lib/types.h" +#include "src/lib/types.h" +#include "src/lib/lib_head.h" + typedef struct { - byte *data; - word width; - word height; - byte *palette; - word offset; + 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);