From 4da7be39827ea5888ef9c97b1aadf61b0d76347c Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Fri, 7 Feb 2025 11:27:18 -0500 Subject: initial commit (lol) --- mons_image/include/image.h | 19 +++++++++++++++++++ mons_image/include/qoi.h | 7 +++++++ 2 files changed, 26 insertions(+) create mode 100644 mons_image/include/image.h create mode 100644 mons_image/include/qoi.h (limited to 'mons_image/include') 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 + +struct mons_image mons_load_qoi(FILE *stream); + +#endif -- cgit v1.2.3