/*
    PNG wrapper 0.1b 1.7.2003
 */

#ifndef PNG_WRAP_H
#define PNG_WRAP_H

#define TYPE_UNKNOWN 0
#define TYPE_PALETTE 1
#define TYPE_GRAY 2
#define TYPE_RGB 3
#define TYPE_RGBA 4

typedef struct png_struktuuri
{
    int type,x,y;
    unsigned char *data,
                  pal[768];
} PNG;

/* -1 == errori, 0 == OKEJ! */
int read_png(char *name,PNG *png);

#endif
