Rev 8134 | Rev 8195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8134 | Rev 8158 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | 42 | ||
43 | /* from flydraw.c */ |
43 | /* from flydraw.c */ |
44 | extern int linecnt, varcnt; |
44 | extern int linecnt, varcnt; |
45 | extern ev_variable vartab[]; |
45 | extern ev_variable vartab[]; |
46 | extern char varnamebuf[MAX_VARNAMEBUF], *varnameptr; |
46 | extern char varnamebuf[MAX_VARNAMEBUF], *varnameptr; |
47 | extern gdImagePtr image, |
47 | extern gdImagePtr image, wimg, tileimg, brushimg; |
48 | extern int |
48 | extern int brushed, tiled, styled, savew, wcolor, transform; |
49 | typedef double matrice[4]; |
49 | typedef double matrice[4]; |
50 | #define JC_NB_MATRICES 19 |
50 | #define JC_NB_MATRICES 19 |
51 | extern matrice matrices_pavage[JC_NB_MATRICES+1]; |
51 | extern matrice matrices_pavage[JC_NB_MATRICES+1]; |
52 | #define matrix matrices_pavage[0] |
52 | #define matrix matrices_pavage[0] |
53 | typedef double vecteur[2]; |
53 | typedef double vecteur[2]; |
54 | extern vecteur vecteurs_pavage[JC_NB_MATRICES+1]; |
54 | extern vecteur vecteurs_pavage[JC_NB_MATRICES+1]; |
55 | #define vector vecteurs_pavage[0]; |
55 | #define vector vecteurs_pavage[0]; |
56 | extern double scale_buf[MAX_PARMS]; |
56 | extern double scale_buf[MAX_PARMS]; |
57 | extern double |
57 | extern double transx, transy; /* translation vector */ |
58 | extern double |
58 | extern double xscale, yscale, xstart, ystart; |
59 | extern int sizex, sizey, saved; |
59 | extern int sizex, sizey, saved; |
60 | extern int |
60 | extern int color_white, color_black, color_bounder, color_frame, lstep; |
61 | extern int width; |
61 | extern int width; |
62 | extern double tend, tstart, tstep, |
62 | extern double tend, tstart, tstep, plotjump, animstep; |
63 | int tranged; |
63 | int tranged; |
64 | extern int |
64 | extern int vimg_enable, vimg_ready; |
65 | extern FILE *vimgf; |
65 | extern FILE *vimgf; |
66 | extern char vimgfilename[1024], imagefilename[1024]; |
66 | extern char vimgfilename[1024], imagefilename[1024]; |
67 | double parallogram_fonda[6]; |
67 | double parallogram_fonda[6]; |
68 | char *substit(char *p); |
68 | char *substit(char *p); |
69 | void output(void); |
69 | void output(void); |
70 | /* from wimg.c */ |
70 | /* from wimg.c */ |
71 | void vimg_init (void); |
71 | void vimg_init (void); |
72 | void vimg_close (void); |
72 | void vimg_close (void); |
73 | void vimg_arc (double x0, |
73 | void vimg_arc (double x0, double y0, double rx, double ry, double a1, double a2); |
74 | void vimg_ellipse (double x0, double y0, double rx, double ry); |
74 | void vimg_ellipse (double x0, double y0, double rx, double ry); |
75 | void vimg_line (double x1, |
75 | void vimg_line (double x1, double y1, double x2, double y2); |
76 | void vimg_polyline (double xy[], int cnt, int closed); |
76 | void vimg_polyline (double xy[], int cnt, int closed); |
77 | void vimg_rect (double x1, double y1, double x2, double y2); |
77 | void vimg_rect (double x1, double y1, double x2, double y2); |
78 | void vimg_plotstart (void); |
78 | void vimg_plotstart (void); |
79 | void vimg_plot1 (double x, double y); |
79 | void vimg_plot1 (double x, double y); |
80 | void vimg_plotend (void); |
80 | void vimg_plotend (void); |
Line 93... | Line 93... | ||
93 | void collapse_item(char *p, int n); |
93 | void collapse_item(char *p, int n); |
94 | int ggetline(char buf[]); |
94 | int ggetline(char buf[]); |
95 | 95 | ||
96 | /* from nametab.c */ |
96 | /* from nametab.c */ |
97 | enum {t_prep,t_color,t_obj}; |
97 | enum {t_prep,t_color,t_obj}; |
98 | typedef struct objparm{ int p[MAX_PARMS]; double pd[MAX_PARMS]; int |
98 | typedef struct objparm{ int p[MAX_PARMS]; double pd[MAX_PARMS]; int pcnt, color[2], fill; |
99 | char str[MAX_LINELEN+1] |
99 | char str[MAX_LINELEN+1], font[16]; } objparm; |
100 | enum {p_and,p_from,p_to,p_thru,p_center,p_color,p_font, |
100 | enum {p_and,p_from,p_to,p_thru,p_center,p_color,p_font, |
101 | p_diameter,p_radius,p_width,p_height }; |
101 | p_diameter,p_radius,p_width,p_height }; |
102 | 102 | ||
103 | extern struct preptab { char *name;int typ; } preptab[]; |
103 | extern struct preptab { char *name;int typ; } preptab[]; |
104 | extern struct objtab { |
104 | extern struct objtab { |
105 | char *name;int |
105 | char *name;int required_parms, color_pos, fill_tag, subst; |
106 | void (*routine) (objparm *pm); } objtab[]; |
106 | void (*routine) (objparm *pm); } objtab[]; |
107 | 107 | ||
108 | extern struct colortab {char *name;char *def;} colortab[]; |
108 | extern struct colortab {char *name;char *def;} colortab[]; |
109 | extern struct nametab {char *name;int type;int serial;} nametab[]; |
109 | extern struct nametab {char *name;int type;int serial;} nametab[]; |
110 | extern int nametab_no, prep_no, obj_no, color_no; |
110 | extern int nametab_no, prep_no, obj_no, color_no; |