summaryrefslogtreecommitdiff
path: root/game.h
diff options
context:
space:
mode:
authororangerot <orangerot@orangerot.dev>2025-10-14 16:32:45 +0200
committerorangerot <orangerot@orangerot.dev>2025-10-14 16:32:45 +0200
commit9efddf8a1a0f4a2e5b17563718346be84486653d (patch)
treeb2723c1cf6927526438fbff4a23b1529b0cf40b5 /game.h
parentd5a89c35f1e2e481a01b151616d5ad9e33da20de (diff)
feat: draw function
Diffstat (limited to 'game.h')
-rw-r--r--game.h14
1 files changed, 8 insertions, 6 deletions
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