diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 21:04:54 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2025-01-21 21:04:54 +1300 |
commit | b4438b2fbe895694be98e6e8426103deefc51448 (patch) | |
tree | 760d86cd7c06420a91dad102cc9546aee73146fc /body/c_fl_image.h | |
parent | a4703a65b015140cd4a7a985db66264875ade734 (diff) |
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_image.h')
-rw-r--r-- | body/c_fl_image.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/body/c_fl_image.h b/body/c_fl_image.h new file mode 100644 index 0000000..ee96b7a --- /dev/null +++ b/body/c_fl_image.h @@ -0,0 +1,52 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_IMAGE_GUARD +#define FL_IMAGE_GUARD + + +typedef void* IMAGE; + + +extern "C" IMAGE new_fl_image(int w, int h, int d); +extern "C" void free_fl_image(IMAGE i); + + +extern "C" int fl_image_get_rgb_scaling(); +extern "C" void fl_image_set_rgb_scaling(int t); +extern "C" IMAGE fl_image_copy(IMAGE i, int w, int h); +extern "C" IMAGE fl_image_copy2(IMAGE i); + + +extern "C" void fl_image_color_average(IMAGE i, int c, float b); +extern "C" void fl_image_desaturate(IMAGE i); + + +extern "C" void fl_image_inactive(IMAGE i); +extern "C" int fl_image_fail(IMAGE i); +extern "C" void fl_image_uncache(IMAGE i); + + +extern "C" int fl_image_w(IMAGE i); +extern "C" int fl_image_h(IMAGE i); +extern "C" int fl_image_d(IMAGE i); +extern "C" int fl_image_ld(IMAGE i); +extern "C" int fl_image_count(IMAGE i); + + +extern "C" const void * fl_image_data(IMAGE i); +extern "C" char fl_image_get_pixel(char *c, int off); +extern "C" void fl_image_set_pixel(char *c, int off, char val); + + +extern "C" void fl_image_draw(IMAGE i, int x, int y); +extern "C" void fl_image_draw2(IMAGE i, int x, int y, int w, int h, int cx, int cy); +extern "C" void fl_image_draw_empty(IMAGE i, int x, int y); + + +#endif + + |