]> 4ch.mooo.com Git - 16.git/blob - src/lib/bitmap.h
huge memory model fucks up everything! 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
6 #include "src/lib/types.h"
7 #include "src/lib/lib_head.h"
8 \r
9 typedef struct {\r
10         byte *data;
11         word width;\r
12         word height;\r
13         byte *palette;
14         word offset;
15 } bitmap_t;\r
16 \r
17 typedef struct {\r
18         byte **data;\r
19         word ntiles;   /* the number of tiles */\r
20         word twidth;   /* width of the tiles */\r
21         word theight;  /* height of the tiles */\r
22         byte *palette; /* palette for the tile set */\r
23 } tileset_t;\r
24 \r
25 bitmap_t bitmapLoadPcx(char *filename);\r
26 tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
27 #endif\r