tinygi

annotate 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
rev   line source
nuclear@2 1 #ifndef TGI_IMAGE_H_
nuclear@2 2 #define TGI_IMAGE_H_
nuclear@2 3
nuclear@2 4 struct image {
nuclear@2 5 int width, height;
nuclear@2 6 float *pixels;
nuclear@2 7 };
nuclear@2 8
nuclear@2 9 void tgi_init_image(struct image *img);
nuclear@2 10 void tgi_destroy_image(struct image *img);
nuclear@2 11
nuclear@2 12 int tgi_resize_image(struct image *img, int xsz, int ysz);
nuclear@2 13
nuclear@2 14 #endif /* TGI_IMAGE_H_ */