diff options
author | Harry Jeffery <harry@exec64.co.uk> | 2019-01-20 23:03:37 +0000 |
---|---|---|
committer | Harry Jeffery <harry@exec64.co.uk> | 2019-01-29 22:25:05 +0000 |
commit | 2d5bb23bede92adf10f496f62e38c6611591e923 (patch) | |
tree | 7215a948866202de6b17b86a31feb8bf4bdb582a /src/bitmap.h | |
parent | c987d66cef2205fc1cf4284104bd8bcc6eb092d0 (diff) | |
download | imv-2d5bb23bede92adf10f496f62e38c6611591e923.tar.gz |
bitmap: Support multiple pixel formats
Diffstat (limited to 'src/bitmap.h')
-rw-r--r-- | src/bitmap.h | 6 |
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; }; |