summaryrefslogtreecommitdiff
path: root/body/c_fl_rgb_image.h
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2025-01-21 21:04:54 +1300
commitb4438b2fbe895694be98e6e8426103deefc51448 (patch)
tree760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_rgb_image.h
parenta4703a65b015140cd4a7a985db66264875ade734 (diff)
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_rgb_image.h')
-rw-r--r--body/c_fl_rgb_image.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/body/c_fl_rgb_image.h b/body/c_fl_rgb_image.h
new file mode 100644
index 0000000..a09b58e
--- /dev/null
+++ b/body/c_fl_rgb_image.h
@@ -0,0 +1,36 @@
+
+
+// Programmed by Jedidiah Barber
+// Released into the public domain
+
+
+#ifndef FL_RGB_IMAGE_GUARD
+#define FL_RGB_IMAGE_GUARD
+
+
+typedef void* RGBIMAGE;
+
+
+extern "C" RGBIMAGE new_fl_rgb_image(void *data, int w, int h, int d, int ld);
+extern "C" RGBIMAGE new_fl_rgb_image2(void *pix, unsigned int c);
+extern "C" void free_fl_rgb_image(RGBIMAGE i);
+extern "C" size_t fl_rgb_image_get_max_size();
+extern "C" void fl_rgb_image_set_max_size(size_t v);
+extern "C" RGBIMAGE fl_rgb_image_copy(RGBIMAGE i, int w, int h);
+extern "C" RGBIMAGE fl_rgb_image_copy2(RGBIMAGE i);
+
+
+extern "C" void fl_rgb_image_color_average(RGBIMAGE i, int c, float b);
+extern "C" void fl_rgb_image_desaturate(RGBIMAGE i);
+
+
+extern "C" void fl_rgb_image_uncache(RGBIMAGE i);
+
+
+extern "C" void fl_rgb_image_draw2(RGBIMAGE i, int x, int y);
+extern "C" void fl_rgb_image_draw(RGBIMAGE i, int x, int y, int w, int h, int cx, int cy);
+
+
+#endif
+
+