summaryrefslogtreecommitdiff
path: root/src/c_fl_shared_image.h
blob: bd5b555a0e29eb8981de1a06ad5eb17e2815f72b (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
42
43
44
45
46
47


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


#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" int fl_shared_image_num_images();
extern "C" const char * fl_shared_image_name(SHARED_IMAGE i);
extern "C" int fl_shared_image_original(SHARED_IMAGE i);
extern "C" int fl_shared_image_refcount(SHARED_IMAGE i);
extern "C" void fl_shared_image_reload(SHARED_IMAGE i);
extern "C" void fl_shared_image_uncache(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