diff options
Diffstat (limited to 'mons_image/include')
-rw-r--r-- | mons_image/include/image.h | 19 | ||||
-rw-r--r-- | mons_image/include/qoi.h | 7 |
2 files changed, 26 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 diff --git a/mons_image/include/qoi.h b/mons_image/include/qoi.h new file mode 100644 index 0000000..0fd7895 --- /dev/null +++ b/mons_image/include/qoi.h @@ -0,0 +1,7 @@ +#ifndef MONS_QOI_H +#define MONS_QOI_H +#include <stdio.h> + +struct mons_image mons_load_qoi(FILE *stream); + +#endif |