labyrinth
annotate src/image.h @ 7:b557812c45db
generating the android (ant) project stuff from the makefile
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 04 May 2015 02:46:35 +0300 |
parents | |
children |
rev | line source |
---|---|
nuclear@0 | 1 #ifndef IMAGE_H_ |
nuclear@0 | 2 #define IMAGE_H_ |
nuclear@0 | 3 |
nuclear@0 | 4 struct image { |
nuclear@0 | 5 int width, height; |
nuclear@0 | 6 unsigned char *pixels; |
nuclear@0 | 7 }; |
nuclear@0 | 8 |
nuclear@0 | 9 #ifdef __cplusplus |
nuclear@0 | 10 extern "C" { |
nuclear@0 | 11 #endif |
nuclear@0 | 12 |
nuclear@0 | 13 struct image *load_image(const char *fname); |
nuclear@0 | 14 void free_image(struct image *img); |
nuclear@0 | 15 |
nuclear@0 | 16 #ifdef __cplusplus |
nuclear@0 | 17 } |
nuclear@0 | 18 #endif |
nuclear@0 | 19 |
nuclear@0 | 20 #endif /* IMAGE_H_ */ |