From 9efddf8a1a0f4a2e5b17563718346be84486653d Mon Sep 17 00:00:00 2001 From: orangerot Date: Tue, 14 Oct 2025 16:32:45 +0200 Subject: feat: draw function --- game.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'game.h') diff --git a/game.h b/game.h index d24d2d7..0cd8b93 100644 --- a/game.h +++ b/game.h @@ -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 -- cgit v1.2.3