eobish

view src/image.h @ 5:0baf4e98315e

depth cueing
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 19 Jan 2015 02:32:01 +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_ */