From f18ea4474bb4905a00e0b39e7205c177ee994196 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 20 Feb 2024 18:04:23 +1300 Subject: Improved binding for the FLTK.Images package subtree --- src/c_fl_image.cpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'src/c_fl_image.cpp') diff --git a/src/c_fl_image.cpp b/src/c_fl_image.cpp index 07b6d4d..6e42280 100644 --- a/src/c_fl_image.cpp +++ b/src/c_fl_image.cpp @@ -77,6 +77,11 @@ int fl_image_fail(IMAGE i) { } } +void fl_image_uncache(IMAGE i) { + // virtual so disable dispatch + reinterpret_cast(i)->Fl_Image::uncache(); +} + @@ -92,6 +97,29 @@ int fl_image_d(IMAGE i) { return reinterpret_cast(i)->d(); } +int fl_image_ld(IMAGE i) { + return reinterpret_cast(i)->ld(); +} + +int fl_image_count(IMAGE i) { + return reinterpret_cast(i)->count(); +} + + + + +const void * fl_image_data(IMAGE i) { + return reinterpret_cast(i)->data(); +} + +char fl_image_get_pixel(char *c, int off) { + return c[off]; +} + +void fl_image_set_pixel(char *c, int off, char val) { + c[off] = val; +} + -- cgit