]> 4ch.mooo.com Git - 16.git/blob - 16/modex16/bitmap.h
16_ca needs huge amounts of work and I should remember what needs to be done soon...
[16.git] / 16 / modex16 / 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 "types.h"\r
7 typedef struct {\r
8     byte *data;\r
9     word width;\r
10     word height;\r
11     byte *palette;\r
12 } bitmap_t;\r
13 \r
14 typedef struct {\r
15     byte **data;\r
16     word ntiles;   /* the number of tiles */\r
17     word twidth;   /* width of the tiles */\r
18     word theight;  /* height of the tiles */\r
19     byte *palette; /* palette for the tile set */\r
20 } tileset_t;\r
21 \r
22 bitmap_t bitmapLoadPcx(char *filename);\r
23 tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
24 #endif\r