]> icculus.org git repositories - btb/d2x.git/blob - include/pngfile.h
add g3_uninit_polygon_model (doesn't do anything)
[btb/d2x.git] / include / pngfile.h
1 /* $Id: pngfile.h,v 1.1 2004-05-22 23:41:29 btb Exp $ */
2 #ifndef PNGFILE_H
3 #define PNGFILE_H
4
5 typedef struct _png_data {
6         unsigned int width;
7         unsigned int height;
8         unsigned int depth;
9         unsigned int channels;
10         unsigned paletted:1;
11         unsigned color:1;
12         unsigned alpha:1;
13
14         unsigned char *data;
15         unsigned char *palette;
16         unsigned int num_palette;
17 } png_data;
18
19 extern int read_png(char *filename, png_data *pdata);
20
21 #endif