Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (32 sloc) 1.781 kB
156699a @tonycoz WIP, more context changes
authored
1 #include "imdatatypes.h"
2 #include "immacros.h"
02d1d62 Initial revision
Arnar Mar Hrafnkelsson authored
3
4 /* structures for passing data between Imager-plugin and the Imager-module */
5
6 #include "ext.h"
7
8
9 #define getINT(k,s) (util_table->getint(INP,k,s))
10 #define getDOUBLE(k,s) (util_table->getdouble(INP,k,s))
11 #define getVOID(k,s) (util_table->getvoid(INP,k,(void**)s))
12 #define getSTR(k,s) (util_table->getstr(INP,k,(char**)s))
13 #define getOBJ(k,t,s) (util_table->getobj(INP,k,t,(void**)s))
14
15 #define i_color_set(cl,r,g,b,a) (symbol_table->i_color_set(cl,r,g,b,a))
16 #define i_color_info(cl) (symbol_table->i_color_info(cl))
17
156699a @tonycoz WIP, more context changes
authored
18 #define im_get_context() (symbol_table->im_get_context_f())
19 #define i_img_empty_ch(im,x,y,ch) ((symbol_table->i_img_empty_ch_f(im_get_context(), im,x,y,ch))
a482206 @tonycoz WIP, it compiles
authored
20 #define i_img_exorcise(im) (symbol_table->i_img_exorcise_f(im))
21 #define i_img_info(im,info) (symbol_table->i_img_info_f(im,info))
02d1d62 Initial revision
Arnar Mar Hrafnkelsson authored
22
a482206 @tonycoz WIP, it compiles
authored
23 #define i_img_setmask(im,ch_mask) (symbol_table->i_img_setmask_f(im,ch_mask))
24 #define i_img_getmask(im) (symbol_table->i_img_getmask_f(im))
02d1d62 Initial revision
Arnar Mar Hrafnkelsson authored
25
faa9b3e Egads
Tony Cook authored
26 /*
27 Not needed? The i_gpix() macro in image.h will call the right function
28 directly.
02d1d62 Initial revision
Arnar Mar Hrafnkelsson authored
29 #define i_ppix(im,x,y,val) (symbol_table->i_ppix(im,x,y,val))
30 #define i_gpix(im,x,y,val) (symbol_table->i_gpix(im,x,y,val))
faa9b3e Egads
Tony Cook authored
31 */
02d1d62 Initial revision
Arnar Mar Hrafnkelsson authored
32
33 #define i_box(im, x1, y1, x2, y2,val) (symbol_table->i_box(im, x1, y1, x2, y2,val))
34 #define i_draw(im, x1, y1, x2, y2,val) (symbol_table->i_draw(im, x1, y1, x2, y2,val))
35 #define i_arc(im, x, y, rad, d1, d2,val) (symbol_table->i_arc(im, x, y, rad, d1, d2,val))
36 #define i_copyto(im,src, x1, y1, x2, y2, tx, ty,trans) (symbol_table->i_copyto(im,src, x1, y1, x2, y2, tx, ty,trans))
37 #define i_rubthru(im,src, tx, ty) (symbol_table->i_rubthru(im,src, tx, ty))
38
39 #ifdef WIN32
40 extern char __declspec(dllexport) evalstr[];
41 extern func_ptr __declspec(dllexport) function_list[];
42 #endif
Something went wrong with that request. Please try again.