tinygi
diff src/image.h @ 2:72752a1b3dbe
images and shapes
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Tue, 21 Jul 2015 04:30:00 +0300 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/image.h Tue Jul 21 04:30:00 2015 +0300 1.3 @@ -0,0 +1,14 @@ 1.4 +#ifndef TGI_IMAGE_H_ 1.5 +#define TGI_IMAGE_H_ 1.6 + 1.7 +struct image { 1.8 + int width, height; 1.9 + float *pixels; 1.10 +}; 1.11 + 1.12 +void tgi_init_image(struct image *img); 1.13 +void tgi_destroy_image(struct image *img); 1.14 + 1.15 +int tgi_resize_image(struct image *img, int xsz, int ysz); 1.16 + 1.17 +#endif /* TGI_IMAGE_H_ */