From ffc566b41d9dd64b2d571f68458a272f503958c6 Mon Sep 17 00:00:00 2001 From: Jed Barber Date: Mon, 15 May 2017 11:08:34 +1000 Subject: Most relevant methods for Image now implemented, except for Draw --- src/c_fl_image.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'src/c_fl_image.cpp') diff --git a/src/c_fl_image.cpp b/src/c_fl_image.cpp index 8222392..a02c683 100644 --- a/src/c_fl_image.cpp +++ b/src/c_fl_image.cpp @@ -15,6 +15,31 @@ void free_fl_image(IMAGE i) { } +IMAGE fl_image_copy(IMAGE i, int w, int h) { + return reinterpret_cast(i)->copy(w, h); +} + + +IMAGE fl_image_copy2(IMAGE i) { + return reinterpret_cast(i)->copy(); +} + + + + +void fl_image_color_average(IMAGE i, int c, float b) { + reinterpret_cast(i)->color_average(c, b); +} + + +void fl_image_desaturate(IMAGE i) { + reinterpret_cast(i)->desaturate(); +} + + +void fl_image_inactive(IMAGE i) { + reinterpret_cast(i)->inactive(); +} int fl_image_w(IMAGE i) { -- cgit