summaryrefslogtreecommitdiff
path: root/src/c_fl_bitmap.cpp
blob: ce1c221a2fd3ff13be87a08f2fdf5d7bc9ff5486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25


#include <FL/Fl_Bitmap.H>
#include "c_fl_bitmap.h"


void free_fl_bitmap(BITMAP b) {
    delete reinterpret_cast<Fl_Bitmap*>(b);
}

BITMAP fl_bitmap_copy(BITMAP b, int w, int h) {
    return reinterpret_cast<Fl_Bitmap*>(b)->copy(w, h);
}

BITMAP fl_bitmap_copy2(BITMAP b) {
    return reinterpret_cast<Fl_Bitmap*>(b)->copy();
}




void fl_bitmap_draw(BITMAP b, int x, int y, int w, int h, int cx, int cy) {
    reinterpret_cast<Fl_Bitmap*>(b)->draw(x, y, w, h, cx, cy);
}