diff options
Diffstat (limited to 'game.h')
| -rw-r--r-- | game.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -5,12 +5,14 @@ #ifndef GAME_H #define GAME_H -typedef struct decoded_image { - size_t width; - size_t height; - uint32_t *buf; - size_t buf_size; -} decoded_image; +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 |
