4 int load_image(struct image *img, const char *fname)
6 if(!(img->pixels = img_load_pixels(fname, &img->width, &img->height, IMG_FMT_RGBF))) {
7 fprintf(stderr, "load_image: failed to load %s\n", fname);
13 void destroy_image(struct image *img)
15 img_free_pixels(img->pixels);