eobish

view src/image.h @ 4:ce0548d24918

mostly works
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 18 Jan 2015 13:30:30 +0200
parents
children
line source
1 #ifndef IMAGE_H_
2 #define IMAGE_H_
4 struct color {
5 int r, g, b;
6 };
8 struct image {
9 int xsz, ysz;
10 unsigned char *pixels;
11 };
13 int load_image(struct image *img, const char *fname);
14 void destroy_image(struct image *img);
16 /* returns the number of palette entries loaded */
17 int load_palette(struct color *col, const char *fname);
19 void blitkey(struct image *img, int x, int y, struct image *src, int key);
21 #endif /* IMAGE_H_ */