summaryrefslogtreecommitdiff
path: root/src/image.h
diff options
context:
space:
mode:
authorPhil Jones <philj56@gmail.com>2021-10-31 16:47:03 +0000
committerPhil Jones <philj56@gmail.com>2021-10-31 16:54:20 +0000
commit74adfe0cbca300e73774c6e0aa9b3c53a5e5b57b (patch)
tree88d0efbdd9755849eb22ee3478595df5c8e69a34 /src/image.h
parentc691b8e48c572e2d5f1c7c16c8f42babd7d706d5 (diff)
Add HiDPI support and lots of cleanup.
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 */