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_jpeg_image.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/c_fl_jpeg_image.cpp') diff --git a/src/c_fl_jpeg_image.cpp b/src/c_fl_jpeg_image.cpp index 93ab22d..be99257 100644 --- a/src/c_fl_jpeg_image.cpp +++ b/src/c_fl_jpeg_image.cpp @@ -11,6 +11,11 @@ JPEG_IMAGE new_fl_jpeg_image(const char * f) { return j; } +JPEG_IMAGE new_fl_jpeg_image2(const char *n, void *data) { + Fl_JPEG_Image *j = new Fl_JPEG_Image(n, reinterpret_cast(data)); + return j; +} + void free_fl_jpeg_image(JPEG_IMAGE j) { delete reinterpret_cast(j); } -- cgit