in_sdl: give names to gamepad buttons
[libpicofe.git] / readpng.h
CommitLineData
7bf7acb6
GI
1#ifndef LIBPICOFE_READPNG_H
2#define LIBPICOFE_READPNG_H
3
13059a60 4typedef enum
5{
6 READPNG_BG = 1,
7 READPNG_FONT,
ff63afa1 8 READPNG_SELECTOR,
f6eaae4f 9 READPNG_24,
4563c131 10 READPNG_SCALE,
13059a60 11}
12readpng_what;
13
ff63afa1 14#ifdef __cplusplus
15extern "C" {
16#endif
13059a60 17
f6eaae4f 18int readpng(void *dest, const char *fname, readpng_what what, int w, int h);
c68a2bca 19int writepngpp(const char *fname, unsigned short *src, int w, int h, int pitch);
7fd8dbbb 20int writepng(const char *fname, unsigned short *src, int w, int h);
ff63afa1 21
22#ifdef __cplusplus
23}
24#endif
7bf7acb6
GI
25
26#endif // LIBPICOFE_READPNG_H