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

  1. #include <exec/types.h>
  2. #include <exec/ports.h>
  3. #include <exec/memory.h>
  4. #include <devices/printer.h>
  5. #include <devices/prtbase.h>
  6. #include <graphics/display.h>
  7. #include <graphics/gfxbase.h>
  8. #include <graphics/view.h>
  9. #include <graphics/gfxmacros.h>
  10. #include <intuition/intuition.h>
  11. #include <intuition/intuitionbase.h>
  12. #include <intuition/screens.h>
  13.  
  14. /* Graphics data buffer file. */
  15. #define PLOTBFFR      "t:plplot.plt"
  16.  
  17. #ifndef PLARGS
  18.   #ifdef LATTICE_50
  19.      #define PLARGS(a)   a
  20.   #else
  21.      #define PLARGS(a)   ()
  22.   #endif
  23. #endif
  24.  
  25. #ifdef LATTICE_50
  26.    #include <proto/exec.h>
  27.    #include <proto/graphics.h>
  28.    #include <proto/intuition.h>
  29.    #include <proto/dos.h>
  30. #endif
  31.  
  32. /* Flags for variables in PLPrefs structure. */
  33. /* WinType defines */
  34. #define PLCUST      01  /* Open on custom screen */
  35. #define PLASP       02  /* Maintain initial aspect */
  36. #define PLBUFF      04  /* Buffer plot in t:plplot.plt */
  37.  
  38. /* ScrType defines */
  39. #define PLLACE      01
  40. #define PLHIRES     02
  41.  
  42. typedef unsigned short USHORT;
  43.  
  44. struct PLPrefs {
  45.    USHORT   WinType;
  46.    USHORT   ScrType;
  47.    USHORT   WXPos, WYPos;      /* Position of Window (WorkBench) */
  48.    USHORT   WWidth, WHeight;   /* Window width, height (WorkBench) */
  49.    USHORT   CXPos, CYPos;      /* Position of Window (Custom) */
  50.    USHORT   CWidth, CHeight;   /* Window width, height (Custom) */
  51.    USHORT   Depth;             /* Screen Depth (1, 2, 3, 4) (Custom) */
  52.    USHORT   Color[16];         /* Color RGB values (Custom Only) */
  53. };
  54.  
  55. /* Define graphics operation types */
  56. #define PENU  10
  57. #define PEND  20
  58. #define SPEN  30
  59. #define PWID  40
  60.  
  61. extern struct IntuitionBase *IntuitionBase;
  62. extern struct GfxBase *GfxBase;
  63.  
  64. extern struct Screen *PLScreen;
  65. extern struct Window *PLWindow;
  66. extern struct RastPort *PLSRPort;      /* Screen rastport */
  67. extern struct RastPort *PLWRPort;      /* Window rastport */
  68. extern struct ViewPort *PLVPort;
  69. extern struct ColorMap *PLCMap;
  70.  
  71. extern struct PLPrefs PLCurPrefs;
  72. extern PLINT XOffset, YOffset, PLWidth, PLHeight;
  73. extern PLINT InitPLWidth, InitPLHeight;
  74.  
  75. void OpenPLWind PLARGS((void));
  76. void OpenLibs PLARGS((void));
  77. void ClosePLWind PLARGS((void));
  78. void CloseLibs PLARGS((void));
  79. void GetPLDefs PLARGS((void));
  80. void SetPLDefs PLARGS((void));
  81. void setlimits PLARGS((void));
  82. void plcolreq PLARGS((void));
  83. void RestorePrefs PLARGS((void));
  84. void setpen PLARGS((PLINT color));
  85. void MakePLMenu PLARGS((void));
  86. void enablemenus PLARGS((void));
  87. void disablemenus PLARGS((void));
  88. void menuselect PLARGS((ULONG class, USHORT code));
  89. void eventwait PLARGS((void));
  90. PLINT eventhandler PLARGS((ULONG class, USHORT code));
  91. PLINT procmess PLARGS((void));
  92. void remakeplot PLARGS((void));
  93. void PLDraw PLARGS((PLINT x, PLINT y));
  94. void PLMove PLARGS((PLINT x, PLINT y));
  95. void prepupdate PLARGS((void));
  96. int getpoint PLARGS((long *com, long *x, long *y));
  97. void finiupdate PLARGS((void));
  98.  
  99. void screendump PLARGS((PLINT type));
  100. void saveiff PLARGS((void));
  101. void disablegads PLARGS((PLINT flag));
  102. void enablegads PLARGS((void));
  103.