summaryrefslogtreecommitdiff
path: root/src/png.h
blob: c6b85d5b012da19dc45917da75f98bda0cea755b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef __PNG_H__
#define __PNG_H__

#include "graphics.h"

#ifdef __cplusplus
extern "C" {
#endif

#define PNG_OK			0
#define PNG_ERROR_OPENING	1
#define PNG_ERROR_READING	2
#define PNG_ERROR_NOT_PNG	3
#define PNG_ERROR_PNG_STRUCTS	4
#define PNG_ERROR_MEMORY	5
#define PNG_ERROR		6
#define PNG_ERROR_INVALID_INPUT 7

gBITMAP *load_png(char *filename, int *error);
int save_png(gBITMAP *img, char *filename);

#ifdef __cplusplus
}
#endif

#endif