]> 4ch.mooo.com Git - 16.git/blob - src/lib/bitmap.h
trying to fix~ palette updater bug! wwww
[16.git] / src / lib / bitmap.h
1 /*\r
2  * Functions and types for loading and manipulating bitmaps.\r
3  */\r
4 #ifndef BITMAP_H\r
5 #define BITMAP_H\r
6 #include "src\lib\types.h"\r
7 typedef struct {\r
8     byte *data;
9     word width;\r
10     word height;\r
11     byte *palette;
12     word offset;
13 } bitmap_t;\r
14 \r
15 typedef struct {\r
16     byte **data;\r
17     word ntiles;   /* the number of tiles */\r
18     word twidth;   /* width of the tiles */\r
19     word theight;  /* height of the tiles */\r
20     byte *palette; /* palette for the tile set */\r
21 } tileset_t;\r
22 \r
23 bitmap_t bitmapLoadPcx(char *filename);\r
24 tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
25 #endif\r