- start of external Imager API access:
[imager.git] / plug.h
CommitLineData
92bda632 1#include "imager.h"
02d1d628
AMH
2
3/* structures for passing data between Imager-plugin and the Imager-module */
4
5#include "ext.h"
6
7
8#define getINT(k,s) (util_table->getint(INP,k,s))
9#define getDOUBLE(k,s) (util_table->getdouble(INP,k,s))
10#define getVOID(k,s) (util_table->getvoid(INP,k,(void**)s))
11#define getSTR(k,s) (util_table->getstr(INP,k,(char**)s))
12#define getOBJ(k,t,s) (util_table->getobj(INP,k,t,(void**)s))
13
14#define i_color_set(cl,r,g,b,a) (symbol_table->i_color_set(cl,r,g,b,a))
15#define i_color_info(cl) (symbol_table->i_color_info(cl))
16
17#define i_img_new() (symbol_table->i_img_new())
18#define i_img_empty(im,x,y) ((symbol_table->i_img_empty(im,x,y))
19#define i_img_empty_ch(im,x,y,ch) ((symbol_table->i_img_empty_ch(im,x,y,ch))
20#define i_img_exorcise(im) (symbol_table->i_img_exorcise(im))
21#define i_img_info(im,info) (symbol_table->i_img_info(im,info))
22
23#define i_img_setmask(im,ch_mask) (symbol_table->i_img_setmask(im,ch_mask))
24#define i_img_getmask(im) (symbol_table->i_img_getmask(im))
25
faa9b3e7
TC
26/*
27Not needed? The i_gpix() macro in image.h will call the right function
28directly.
02d1d628
AMH
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))
faa9b3e7 31*/
02d1d628
AMH
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
40extern char __declspec(dllexport) evalstr[];
41extern func_ptr __declspec(dllexport) function_list[];
42#endif