summaryrefslogtreecommitdiff
path: root/game.h
diff options
context:
space:
mode:
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