home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 344b.lha / plplot_v2.6 / drivers / dispatch.c < prev    next >
Encoding:
C/C++ Source or Header  |  1990-01-27  |  4.6 KB  |  177 lines

  1. #include "plplot.h"
  2. #include "dispatch.h"
  3.  
  4. void amisetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  5. void amiselect PLARGS((PLINT or, char *file));
  6. void amiinit PLARGS((void));
  7. void amiline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  8. void amiclear PLARGS((void));
  9. void amipage PLARGS((void));
  10. void amitidy PLARGS((void));
  11. void amicolor PLARGS((PLINT color));
  12. void amitext PLARGS((void));
  13. void amigraph PLARGS((void));
  14. void amiwidth PLARGS((PLINT width));
  15.  
  16. void prefsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  17. void prefselect PLARGS((PLINT or, char *file));
  18. void prefinit PLARGS((void));
  19. void prefline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  20. void prefclear PLARGS((void));
  21. void prefpage PLARGS((void));
  22. void preftidy PLARGS((void));
  23. void prefcolor PLARGS((PLINT color));
  24. void preftext PLARGS((void));
  25. void prefgraph PLARGS((void));
  26. void prefwidth PLARGS((PLINT width));
  27.  
  28. void iffsetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  29. void iffselect PLARGS((PLINT or, char *file));
  30. void iffinit PLARGS((void));
  31. void iffline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  32. void iffclear PLARGS((void));
  33. void iffpage PLARGS((void));
  34. void ifftidy PLARGS((void));
  35. void iffcolor PLARGS((PLINT color));
  36. void ifftext PLARGS((void));
  37. void iffgraph PLARGS((void));
  38. void iffwidth PLARGS((PLINT width));
  39.  
  40. void hp7475setup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  41. void hp7475select PLARGS((PLINT or, char *file));
  42. void hp7475init PLARGS((void));
  43. void hp7475line PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  44. void hp7475clear PLARGS((void));
  45. void hp7475page PLARGS((void));
  46. void hp7475tidy PLARGS((void));
  47. void hp7475color PLARGS((PLINT color));
  48. void hp7475text PLARGS((void));
  49. void hp7475graph PLARGS((void));
  50. void hp7475width PLARGS((PLINT width));
  51.  
  52. void aegissetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  53. void aegisselect PLARGS((PLINT or, char *file));
  54. void aegisinit PLARGS((void));
  55. void aegisline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  56. void aegisclear PLARGS((void));
  57. void aegispage PLARGS((void));
  58. void aegistidy PLARGS((void));
  59. void aegiscolor PLARGS((PLINT color));
  60. void aegistext PLARGS((void));
  61. void aegisgraph PLARGS((void));
  62. void aegiswidth PLARGS((PLINT width));
  63.  
  64. void pssetup PLARGS((PLFLT xdpi, PLFLT ydpi, PLINT xsize, PLINT ysize));
  65. void psselect PLARGS((PLINT or, char *file));
  66. void psinit PLARGS((void));
  67. void psline PLARGS((PLINT x1, PLINT y1, PLINT x2, PLINT y2));
  68. void psclear PLARGS((void));
  69. void pspage PLARGS((void));
  70. void pstidy PLARGS((void));
  71. void pscolor PLARGS((PLINT color));
  72. void pstext PLARGS((void));
  73. void psgraph PLARGS((void));
  74. void pswidth PLARGS((PLINT width));
  75.  
  76. DISPATCH_TABLE plDispatchTable[] = {
  77.    /* Amiga routines */
  78.    {
  79.       /* This string appears in the device menu list. */
  80.       "Amiga Window",
  81.       /* Page Setup routine */
  82.       amisetup,
  83.       /* Orientation and file name selection */
  84.       amiselect,
  85.       /* Device initialization function pointer. */
  86.       amiinit,
  87.       /* Function to draw line between two points */
  88.       amiline,
  89.       /* Clear screen (or eject page) function. */
  90.       amiclear,
  91.       /* New page set up. */
  92.       amipage,
  93.       /* Tidy up device (flush buffers, close file, etc.) */
  94.       amitidy,
  95.       /* Function to change pen color. */
  96.       amicolor,
  97.       /* Switch to text mode. */
  98.       amitext,
  99.       /* Switch to graphics mode. */
  100.       amigraph,
  101.       /* Set pen width */
  102.       amiwidth
  103.    },
  104.    {
  105.       "Preferences Printer",
  106.       prefsetup,
  107.       prefselect,
  108.       prefinit,
  109.       prefline,
  110.       prefclear,
  111.       prefpage,
  112.       preftidy,
  113.       prefcolor,
  114.       preftext,
  115.       prefgraph,
  116.       prefwidth
  117.    },
  118.    {
  119.       "IFF Graphics File",
  120.       iffsetup,
  121.       iffselect,
  122.       iffinit,
  123.       iffline,
  124.       iffclear,
  125.       iffpage,
  126.       ifftidy,
  127.       iffcolor,
  128.       ifftext,
  129.       iffgraph,
  130.       iffwidth
  131.    },
  132.    {
  133.       "HP7475A Plotter (PLT: device)",
  134.       hp7475setup,
  135.       hp7475select,
  136.       hp7475init,
  137.       hp7475line,
  138.       hp7475clear,
  139.       hp7475page,
  140.       hp7475tidy,
  141.       hp7475color,
  142.       hp7475text,
  143.       hp7475graph,
  144.       hp7475width
  145.    },
  146.    {
  147.       "Aegis Draw File",
  148.       aegissetup,
  149.       aegisselect,
  150.       aegisinit,
  151.       aegisline,
  152.       aegisclear,
  153.       aegispage,
  154.       aegistidy,
  155.       aegiscolor,
  156.       aegistext,
  157.       aegisgraph,
  158.       aegiswidth
  159.    },
  160.    {
  161.       "PostScript File",
  162.       pssetup,
  163.       psselect,
  164.       psinit,
  165.       psline,
  166.       psclear,
  167.       pspage,
  168.       pstidy,
  169.       pscolor,
  170.       pstext,
  171.       psgraph,
  172.       pswidth
  173.    }
  174. };
  175.  
  176. int npldrivers = (sizeof(plDispatchTable)/sizeof(struct dispatch_table));
  177.