diff options
| author | orangerot <orangerot@orangerot.dev> | 2025-10-14 16:32:45 +0200 |
|---|---|---|
| committer | orangerot <orangerot@orangerot.dev> | 2025-10-14 16:32:45 +0200 |
| commit | 9efddf8a1a0f4a2e5b17563718346be84486653d (patch) | |
| tree | b2723c1cf6927526438fbff4a23b1529b0cf40b5 /game.h | |
| parent | d5a89c35f1e2e481a01b151616d5ad9e33da20de (diff) | |
feat: draw function
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 |
