1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef IMAGE_H #define IMAGE_H #include <SDL.h> #include "resource.h" struct image { struct resource res; SDL_Surface *image; }; struct image *img_png_get(const char *path); void img_png_free(struct image *image); #endif