1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#ifndef RESOURCES_PALETTE_H #define RESOURCES_PALETTE_H #include <SDL.h> #include "resource.h" struct palette { struct resource res; SDL_Palette *palette; }; struct palette *palette_get(const char *path); void palette_free(struct palette *palette); #endif