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_tiled_image.cpp | |
parent | a4703a65b015140cd4a7a985db66264875ade734 (diff) |
Split public API and private implementation files into different directories
Diffstat (limited to 'body/c_fl_tiled_image.cpp')
-rw-r--r-- | body/c_fl_tiled_image.cpp | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/body/c_fl_tiled_image.cpp b/body/c_fl_tiled_image.cpp new file mode 100644 index 0000000..0fbea0f --- /dev/null +++ b/body/c_fl_tiled_image.cpp @@ -0,0 +1,64 @@ + + +// Programmed by Jedidiah Barber +// Released into the public domain + + +#include <FL/Fl_Tiled_Image.H> +#include <FL/Fl_Image.H> +#include "c_fl_tiled_image.h" + + + + +TILEDIMAGE new_fl_tiled_image(void * i, int w, int h) { + Fl_Tiled_Image *t = new Fl_Tiled_Image(static_cast<Fl_Image*>(i), w, h); + return t; +} + +void free_fl_tiled_image(TILEDIMAGE t) { + delete static_cast<Fl_Tiled_Image*>(t); +} + +TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h) { + // virtual so disable dispatch + return static_cast<Fl_Tiled_Image*>(t)->Fl_Tiled_Image::copy(w, h); +} + +TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t) { + return static_cast<Fl_Tiled_Image*>(t)->copy(); +} + + + + +void * fl_tiled_image_get_image(TILEDIMAGE t) { + return static_cast<Fl_Tiled_Image*>(t)->image(); +} + + + + +void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b) { + // virtual so disable dispatch + static_cast<Fl_Tiled_Image*>(t)->Fl_Tiled_Image::color_average(c, b); +} + +void fl_tiled_image_desaturate(TILEDIMAGE t) { + // virtual so disable dispatch + static_cast<Fl_Tiled_Image*>(t)->Fl_Tiled_Image::desaturate(); +} + + + + +void fl_tiled_image_draw(TILEDIMAGE t, int x, int y) { + static_cast<Fl_Tiled_Image*>(t)->draw(x, y); +} + +void fl_tiled_image_draw2(TILEDIMAGE t, int x, int y, int w, int h, int cx, int cy) { + // virtual so disable dispatch + static_cast<Fl_Tiled_Image*>(t)->Fl_Tiled_Image::draw(x, y, w, h, cx, cy); +} + + |