summaryrefslogtreecommitdiff
path: root/src/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/image.h')
-rw-r--r--src/image.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/image.h b/src/image.h
new file mode 100644
index 0000000..d5bd346
--- /dev/null
+++ b/src/image.h
@@ -0,0 +1,17 @@
+#ifndef IMAGE_H
+#define IMAGE_H
+
+#include <stdbool.h>
+#include <stdint.h>
+
+struct image {
+ uint8_t *buffer;
+ uint32_t width;
+ uint32_t height;
+ bool swizzle;
+ bool redraw;
+};
+
+void image_load(struct image *image, const char *filename);
+
+#endif /* IMAGE_H */