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_shared_image.h | |
parent | a4703a65b015140cd4a7a985db66264875ade734 (diff) |
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_shared_image.h')
-rw-r--r-- | body/c_fl_shared_image.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/body/c_fl_shared_image.h b/body/c_fl_shared_image.h new file mode 100644 index 0000000..dbe0352 --- /dev/null +++ b/body/c_fl_shared_image.h @@ -0,0 +1,42 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#ifndef FL_SHARED_IMAGE_GUARD +#define FL_SHARED_IMAGE_GUARD + + +typedef void* SHAREDIMAGE; + + +extern "C" SHAREDIMAGE fl_shared_image_get(const char * f, int w, int h); +extern "C" SHAREDIMAGE fl_shared_image_get2(void * r); +extern "C" SHAREDIMAGE fl_shared_image_find(const char * n, int w, int h); +extern "C" void fl_shared_image_release(SHAREDIMAGE i); +extern "C" SHAREDIMAGE fl_shared_image_copy(SHAREDIMAGE i, int w, int h); +extern "C" SHAREDIMAGE fl_shared_image_copy2(SHAREDIMAGE i); + + +extern "C" void fl_shared_image_color_average(SHAREDIMAGE i, int c, float b); +extern "C" void fl_shared_image_desaturate(SHAREDIMAGE i); + + +extern "C" int fl_shared_image_num_images(); +extern "C" const char * fl_shared_image_name(SHAREDIMAGE i); +extern "C" int fl_shared_image_original(SHAREDIMAGE i); +extern "C" int fl_shared_image_refcount(SHAREDIMAGE i); +extern "C" void fl_shared_image_reload(SHAREDIMAGE i); +extern "C" void fl_shared_image_uncache(SHAREDIMAGE i); + + +extern "C" void fl_shared_image_scaling_algorithm(int v); +extern "C" void fl_shared_image_scale(SHAREDIMAGE i, int w, int h, int p, int e); +extern "C" void fl_shared_image_draw(SHAREDIMAGE i, int x, int y, int w, int h, int cx, int cy); +extern "C" void fl_shared_image_draw2(SHAREDIMAGE i, int x, int y); + + +#endif + + |