From b4438b2fbe895694be98e6e8426103deefc51448 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Tue, 21 Jan 2025 21:04:54 +1300 Subject: Split public API and private implementation files into different directories --- src/c_fl_tiled_image.cpp | 64 ------------------------------------------------ 1 file changed, 64 deletions(-) delete mode 100644 src/c_fl_tiled_image.cpp (limited to 'src/c_fl_tiled_image.cpp') diff --git a/src/c_fl_tiled_image.cpp b/src/c_fl_tiled_image.cpp deleted file mode 100644 index 0fbea0f..0000000 --- a/src/c_fl_tiled_image.cpp +++ /dev/null @@ -1,64 +0,0 @@ - - -// Programmed by Jedidiah Barber -// Released into the public domain - - -#include -#include -#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(i), w, h); - return t; -} - -void free_fl_tiled_image(TILEDIMAGE t) { - delete static_cast(t); -} - -TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h) { - // virtual so disable dispatch - return static_cast(t)->Fl_Tiled_Image::copy(w, h); -} - -TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t) { - return static_cast(t)->copy(); -} - - - - -void * fl_tiled_image_get_image(TILEDIMAGE t) { - return static_cast(t)->image(); -} - - - - -void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b) { - // virtual so disable dispatch - static_cast(t)->Fl_Tiled_Image::color_average(c, b); -} - -void fl_tiled_image_desaturate(TILEDIMAGE t) { - // virtual so disable dispatch - static_cast(t)->Fl_Tiled_Image::desaturate(); -} - - - - -void fl_tiled_image_draw(TILEDIMAGE t, int x, int y) { - static_cast(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(t)->Fl_Tiled_Image::draw(x, y, w, h, cx, cy); -} - - -- cgit