aboutsummaryrefslogtreecommitdiff
path: root/mons_image/include/image.h
diff options
context:
space:
mode:
Diffstat (limited to 'mons_image/include/image.h')
-rw-r--r--mons_image/include/image.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/mons_image/include/image.h b/mons_image/include/image.h
new file mode 100644
index 0000000..8b258aa
--- /dev/null
+++ b/mons_image/include/image.h
@@ -0,0 +1,19 @@
+#ifndef MONS_IMAGE_H
+#define MONS_IMAGE_H
+
+typedef struct mons_pixel {
+ unsigned char r;
+ unsigned char g;
+ unsigned char b;
+ unsigned char a;
+} mons_pixel;
+
+typedef struct mons_image {
+ unsigned int width;
+ unsigned int height;
+ mons_pixel *data;
+} mons_image;
+
+void mons_image_free(mons_image *image);
+
+#endif