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