eobish

view src/image.h @ 8:c0e8bbf96849

merged
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 15:49:36 +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_ */