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
|
// Programmed by Jedidiah Barber
// Released into the public domain
#ifndef FL_SHARED_IMAGE_GUARD
#define FL_SHARED_IMAGE_GUARD
typedef void* SHAREDIMAGE;
extern "C" SHAREDIMAGE fl_shared_image_get(const char * f, int w, int h);
extern "C" SHAREDIMAGE fl_shared_image_get2(void * r);
extern "C" SHAREDIMAGE fl_shared_image_find(const char * n, int w, int h);
extern "C" void fl_shared_image_release(SHAREDIMAGE i);
extern "C" SHAREDIMAGE fl_shared_image_copy(SHAREDIMAGE i, int w, int h);
extern "C" SHAREDIMAGE fl_shared_image_copy2(SHAREDIMAGE i);
extern "C" void fl_shared_image_color_average(SHAREDIMAGE i, int c, float b);
extern "C" void fl_shared_image_desaturate(SHAREDIMAGE i);
extern "C" int fl_shared_image_num_images();
extern "C" const char * fl_shared_image_name(SHAREDIMAGE i);
extern "C" int fl_shared_image_original(SHAREDIMAGE i);
extern "C" int fl_shared_image_refcount(SHAREDIMAGE i);
extern "C" void fl_shared_image_reload(SHAREDIMAGE i);
extern "C" void fl_shared_image_uncache(SHAREDIMAGE i);
extern "C" void fl_shared_image_scaling_algorithm(int v);
extern "C" void fl_shared_image_scale(SHAREDIMAGE i, int w, int h, int p, int e);
extern "C" void fl_shared_image_draw(SHAREDIMAGE i, int x, int y, int w, int h, int cx, int cy);
extern "C" void fl_shared_image_draw2(SHAREDIMAGE i, int x, int y);
#endif
|