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