1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stddef.h> #include <stdint.h> #ifndef GAME_H #define GAME_H struct color { unsigned char r,g,b,a; }; struct image { size_t width, height, bufsize; union {uint32_t *buf; struct color *color;}; }; #endif // GAME_H