dxx-rebirth/d2x-rebirth/include/pngfile.h
2014-06-01 19:55:23 +02:00

28 lines
612 B
C

/*
* This file is part of the DXX-Rebirth project <http://www.dxx-rebirth.com/>.
* It is copyright by its individual contributors, as recorded in the
* project's Git history. See COPYING.txt at the top level for license
* terms and a link to the Git history.
*/
#ifndef PNGFILE_H
#define PNGFILE_H
struct png_data
{
unsigned int width;
unsigned int height;
unsigned int depth;
unsigned int channels;
unsigned paletted:1;
unsigned color:1;
unsigned alpha:1;
unsigned char *data;
unsigned char *palette;
unsigned int num_palette;
};
extern int read_png(char *filename, png_data *pdata);
#endif