diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2024-02-21 18:48:49 +1300 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2024-02-21 18:48:49 +1300 |
commit | fbec75e5847cace1edd5b10e16176f1fba18f969 (patch) | |
tree | ba196482bd0e7572e1ed9c442070554fa01c5691 /src/c_fl_tiled_image.h | |
parent | c5b296567825c48d3658d62f01ec770449379e85 (diff) |
Fl_Tiled_Image binding added
Diffstat (limited to 'src/c_fl_tiled_image.h')
-rw-r--r-- | src/c_fl_tiled_image.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/c_fl_tiled_image.h b/src/c_fl_tiled_image.h new file mode 100644 index 0000000..12b1c1e --- /dev/null +++ b/src/c_fl_tiled_image.h @@ -0,0 +1,34 @@ + + +#ifndef FL_TILED_IMAGE_GUARD +#define FL_TILED_IMAGE_GUARD + + + + +typedef void* TILED_IMAGE; + + + + +extern "C" TILED_IMAGE new_fl_tiled_image(void * i, int w, int h); +extern "C" void free_fl_tiled_image(TILED_IMAGE t); +extern "C" TILED_IMAGE fl_tiled_image_copy(TILED_IMAGE t, int w, int h); +extern "C" TILED_IMAGE fl_tiled_image_copy2(TILED_IMAGE t); + + + + +extern "C" void * fl_tiled_image_get_image(TILED_IMAGE t); + + +extern "C" void fl_tiled_image_color_average(TILED_IMAGE t, int c, float b); +extern "C" void fl_tiled_image_desaturate(TILED_IMAGE t); + + +extern "C" void fl_tiled_image_draw(TILED_IMAGE t, int x, int y); +extern "C" void fl_tiled_image_draw2(TILED_IMAGE t, int x, int y, int w, int h, int cx, int cy); + + +#endif + |