--- ray/src/meta/plot.h 2003/06/08 12:03:10 1.2 +++ ray/src/meta/plot.h 2019/11/18 22:12:32 1.5 @@ -1,21 +1,58 @@ -/* RCSid: $Id: plot.h,v 1.2 2003/06/08 12:03:10 schorsch Exp $ */ +/* RCSid: $Id: plot.h,v 1.5 2019/11/18 22:12:32 greg Exp $ */ /* * Definitions for plotting routines */ +#ifndef _RAD_PLOT_H_ +#define _RAD_PLOT_H_ +#ifdef __cplusplus +extern "C" { +#endif #define NPATS 9 /* number of fill patterns */ #define PATSIZE 16 /* pattern size (square) */ -extern int dxsize, dysize; /* device size */ +extern int dxsiz, dysiz; /* device size */ extern int pati[]; extern unsigned char pattern[][PATSIZE/8][PATSIZE]; /* fill patterns */ -extern void set(int attrib, char *value); -extern void reset(int attrib); -extern void unset(int attrib); + /* macplot.c, plot.c, psplot.c */ +extern void set(int attrib, char *value); +extern void reset(int attrib); +extern void unset(int attrib); + + /* xxxplot.c */ +extern void plot(FILE *fp); +extern void fillpoly(PRIMITIVE *p); +extern void filltri(PRIMITIVE *p); +extern void printstr(PRIMITIVE *p); +extern void fillrect(PRIMITIVE *p); +extern void plotlseg(PRIMITIVE *p); + + /* meta2tga.c <-> rplot.c */ +extern void nextblock(void); +extern void outputblock(void); +extern void printblock(void); + + /* primout.c */ +extern void pglob(int co, int a0, char *s); +extern void pprim(int co,int a0,int xmin,int ymin,int xmax,int ymax,char *s); +extern void plseg(int a0, int xstart, int ystart, int xend, int yend); + + /* psplot, x11plot.c, xplot.c */ +extern void thispage(void); +extern void nextpage(void); +extern void contpage(void); +extern void printspan(void); +extern void endpage(void); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_PLOT_H_ */