From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- body/c_fl_tiled_image.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 body/c_fl_tiled_image.h (limited to 'body/c_fl_tiled_image.h') diff --git a/body/c_fl_tiled_image.h b/body/c_fl_tiled_image.h new file mode 100644 index 0000000..9eee3dd --- /dev/null +++ b/body/c_fl_tiled_image.h @@ -0,0 +1,33 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_TILED_IMAGE_GUARD +#define FL_TILED_IMAGE_GUARD + + +typedef void* TILEDIMAGE; + + +extern "C" TILEDIMAGE new_fl_tiled_image(void * i, int w, int h); +extern "C" void free_fl_tiled_image(TILEDIMAGE t); +extern "C" TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h); +extern "C" TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t); + + +extern "C" void * fl_tiled_image_get_image(TILEDIMAGE t); + + +extern "C" void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b); +extern "C" void fl_tiled_image_desaturate(TILEDIMAGE t); + + +extern "C" void fl_tiled_image_draw(TILEDIMAGE t, int x, int y); +extern "C" void fl_tiled_image_draw2(TILEDIMAGE t, int x, int y, int w, int h, int cx, int cy); + + +#endif + + -- cgit