OSDN Git Service

attempted font system added
[proj16/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 //      byte far *font;
16 } bitmap_t;\r
17 \r
18 typedef struct {\r
19         byte **data;\r
20         word ntiles;   /* the number of tiles */\r
21         word twidth;   /* width of the tiles */\r
22         word theight;  /* height of the tiles */\r
23         byte *palette; /* palette for the tile set */\r
24 } tileset_t;\r
25 \r
26 bitmap_t bitmapLoadPcx(char *filename);\r
27 tileset_t bitmapLoadPcxTiles(char *filename, word twidth, word theight);\r
28 #endif\r