]> icculus.org git repositories - btb/d2x.git/blob - include/pngfile.h
use the orientation parameter of g3_draw_bitmap
[btb/d2x.git] / include / pngfile.h
1 #ifndef PNGFILE_H
2 #define PNGFILE_H
3
4 typedef struct _png_data {
5         unsigned int width;
6         unsigned int height;
7         unsigned int depth;
8         unsigned int channels;
9         unsigned paletted:1;
10         unsigned color:1;
11         unsigned alpha:1;
12
13         unsigned char *data;
14         unsigned char *palette;
15         unsigned int num_palette;
16 } png_data;
17
18 extern int read_png(char *filename, png_data *pdata);
19
20 #endif