summaryrefslogtreecommitdiff
path: root/src/c_fl_tiled_image.h
blob: 9eee3dd1211d13e889ac5596ae15a82b0c4d10fe (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
26
27
28
29
30
31
32
33


//  Programmed by Jedidiah Barber
//  Released into the public domain


#ifndef FL_TILED_IMAGE_GUARD
#define FL_TILED_IMAGE_GUARD


typedef void* TILEDIMAGE;


extern "C" TILEDIMAGE new_fl_tiled_image(void * i, int w, int h);
extern "C" void free_fl_tiled_image(TILEDIMAGE t);
extern "C" TILEDIMAGE fl_tiled_image_copy(TILEDIMAGE t, int w, int h);
extern "C" TILEDIMAGE fl_tiled_image_copy2(TILEDIMAGE t);


extern "C" void * fl_tiled_image_get_image(TILEDIMAGE t);


extern "C" void fl_tiled_image_color_average(TILEDIMAGE t, int c, float b);
extern "C" void fl_tiled_image_desaturate(TILEDIMAGE t);


extern "C" void fl_tiled_image_draw(TILEDIMAGE t, int x, int y);
extern "C" void fl_tiled_image_draw2(TILEDIMAGE t, int x, int y, int w, int h, int cx, int cy);


#endif