summaryrefslogtreecommitdiff
path: root/src/c_fl_shared_image.h
blob: 5555530fff5279b5f1fe5085b22352a509b9792e (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
34
35
36
37
38
39
40
41


#ifndef FL_SHARED_IMAGE_GUARD
#define FL_SHARED_IMAGE_GUARD




typedef void* SHARED_IMAGE;




extern "C" SHARED_IMAGE fl_shared_image_get(const char * f, int w, int h);
extern "C" SHARED_IMAGE fl_shared_image_get2(void * r);
extern "C" SHARED_IMAGE fl_shared_image_find(const char * n, int w, int h);
extern "C" void fl_shared_image_release(SHARED_IMAGE i);
extern "C" SHARED_IMAGE fl_shared_image_copy(SHARED_IMAGE i, int w, int h);
extern "C" SHARED_IMAGE fl_shared_image_copy2(SHARED_IMAGE i);




extern "C" void fl_shared_image_color_average(SHARED_IMAGE i, int c, float b);
extern "C" void fl_shared_image_desaturate(SHARED_IMAGE i);


extern "C" const char * fl_shared_image_name(SHARED_IMAGE i);
extern "C" void fl_shared_image_reload(SHARED_IMAGE i);


extern "C" void fl_shared_image_scaling_algorithm(int v);
extern "C" void fl_shared_image_scale(SHARED_IMAGE i, int w, int h, int p, int e);


extern "C" void fl_shared_image_draw(SHARED_IMAGE i, int x, int y, int w, int h, int cx, int cy);
extern "C" void fl_shared_image_draw2(SHARED_IMAGE i, int x, int y);


#endif