1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifndef COLOR_H #define COLOR_H #include <SDL.h> typedef enum { COLOR_BG, COLOR_BG_WON, COLOR_WALL, COLOR_GOAL, COLOR_HOME, COLOR_HOME_GOAL, COLOR_BOX, COLOR_BOX_GOAL, COLOR_LAST, } color_t; void set_color(SDL_Renderer * const, const color_t); #endif /* COLOR_H */