aboutsummaryrefslogtreecommitdiff
path: root/src/bitmap.h
diff options
context:
space:
mode:
authorHarry Jeffery <harry@exec64.co.uk>2019-01-20 23:03:37 +0000
committerHarry Jeffery <harry@exec64.co.uk>2019-01-29 22:25:05 +0000
commit2d5bb23bede92adf10f496f62e38c6611591e923 (patch)
tree7215a948866202de6b17b86a31feb8bf4bdb582a /src/bitmap.h
parentc987d66cef2205fc1cf4284104bd8bcc6eb092d0 (diff)
downloadimv-2d5bb23bede92adf10f496f62e38c6611591e923.tar.gz
bitmap: Support multiple pixel formats
Diffstat (limited to 'src/bitmap.h')
-rw-r--r--src/bitmap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bitmap.h b/src/bitmap.h
index 0f08959..61ef0ce 100644
--- a/src/bitmap.h
+++ b/src/bitmap.h
@@ -1,9 +1,15 @@
#ifndef IMV_BITMAP_H
#define IMV_BITMAP_H
+enum imv_pixelformat {
+ IMV_ARGB,
+ IMV_ABGR,
+};
+
struct imv_bitmap {
int width;
int height;
+ enum imv_pixelformat format;
unsigned char *data;
};