home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / programs / amiga / pastex / pastex14-beta-6 / specialhost / source / data.h < prev    next >
C/C++ Source or Header  |  1994-06-07  |  3KB  |  136 lines

  1. /*
  2. **    SpecialHost for PasTeX
  3. **
  4. **    Copyright © by Olaf Barthel & Georg Heßmann
  5. */
  6.  
  7. enum    {    GAD_TRANSFER=1000,GAD_RENDER,GAD_INVERT,GAD_BASEDPI,GAD_MSGLIST,GAD_JUMP,GAD_SHOW,GAD_CLEAR,
  8.  
  9.         MEN_OPEN,MEN_SAVE,MEN_PUBSCREEN,MEN_ABOUT,MEN_QUIT
  10.     };
  11.  
  12. enum    {    CYID_Transfer_Memory, CYID_Transfer_Disk, CYID_Transfer_None };
  13. enum    {    CYID_Render_None, CYID_Render_Frame, CYID_Render_Clear };
  14.  
  15. enum    {    ERR_NO_INTUITION=1000,ERR_NO_GRAPHICS,ERR_NO_GADTOOLS,ERR_NO_ICON,
  16.         ERR_NO_IFFPARSE,ERR_NO_UTILITY,ERR_NO_ASL,ERR_NO_MUI,ERR_NO_POOL,
  17.         ERR_NO_GUI,ERR_ALREADY_RUNNING,ERR_NO_PORT,ERR_NO_MATHFFP,ERR_NO_MATHTRANS,
  18.  
  19.         ERR_READ_ERROR,ERR_NO_MEM,ERR_FILE_FORMAT_ERROR,ERR_WEIRD_COMPRESSION,
  20.         ERR_WRONG_IMAGE_FORMAT,ERR_TOO_LARGE,ERR_TOO_SMALL,
  21.  
  22.         ERR_NO_POST,ERR_NO_NIL,
  23.     };
  24.  
  25. #define BMHDB_CMAPOK    7
  26. #define BMHDF_CMAPOK    (1 << BMHDB_CMAPOK)
  27.  
  28. #define MAX_FILENAME_LEN 256
  29.  
  30. #define PORTMASK(p)    (1L << ((struct MsgPort *)(p)) -> mp_SigBit)
  31.  
  32. struct ListEntry
  33. {
  34.     struct MinNode         MinNode;
  35.     STRPTR             Title;
  36. };
  37.  
  38. struct GreyImage
  39. {
  40.     LONG             Width,
  41.                  Height,
  42.                  Index;
  43.     UBYTE            **Lines;
  44.     APTR             Pool;
  45. };
  46.  
  47. struct MapTable
  48. {
  49.     STRPTR             Key;
  50.     LONG             ID;
  51. };
  52.  
  53. extern struct ExecBase        *SysBase;
  54. extern struct DosLibrary    *DOSBase;
  55.  
  56. extern struct IntuitionBase    *IntuitionBase;
  57. extern struct GfxBase        *GfxBase;
  58. extern struct Library        *IconBase,
  59.                 *GadToolsBase,
  60.                 *IFFParseBase,
  61.                 *UtilityBase,
  62.                 *AslBase,
  63. /*
  64.                 *MathBase,
  65.                 *MathTransBase,
  66. */
  67.  
  68.                 *MathIeeeDoubBasBase,
  69.                 *MathIeeeDoubTransBase,
  70.  
  71.                 *MUIMasterBase,
  72.                 *DataTypesBase;
  73.  
  74. extern struct Process        *ThisProcess;
  75. extern APTR             OldPtr;
  76.  
  77. extern APTR             Pool;
  78.  
  79. extern struct List         MessageList;
  80.  
  81. extern struct MsgPort        *MainPort;
  82.  
  83. extern UBYTE             Filter[256];
  84.  
  85. extern APTR             AP_Application,
  86.                  WI_Main,
  87.                  CY_Transfer,
  88.                  CY_Render,
  89.                  CM_Invert,
  90.                  ST_BaseDPI,
  91.                  LV_Messages,
  92.                  GA_Gauge,
  93.                  BT_Jump,
  94.                  BT_Show,
  95.                  BT_Clear;
  96.  
  97. extern struct Screen        *PubScreen;
  98.  
  99. extern struct Process        *Father;
  100. extern BOOL             InvertChanged,
  101.                  UseGUI;
  102.  
  103. extern struct config_struct     Configuration;
  104. extern struct NewMenu         MenuTemplate[];
  105.  
  106. extern STRPTR             CYA_Transfer[],
  107.                  CYA_Render[];
  108.  
  109. extern UBYTE             OrderedBckBrick[256],
  110.                  OrderedFwdBrick[256],
  111.                  OrderedHalftone[256],
  112.                  OrderedVanilla[256],
  113.                  OrderedHexagonalCluster[256],
  114.                  OrderedSpiralDot[256],
  115.                  OrderedHorizontal[256],
  116.                  OrderedBckBrick8[256],
  117.                  OrderedBckBrick4[256],
  118.                  OrderedFwdBrick8[256],
  119.                  OrderedFwdBrick4[256],
  120.                  OrderedHalftone8[256],
  121.                  OrderedHalftone4[256],
  122.                  OrderedSpiralDot8[256],
  123.                  OrderedSpiralDot4[256];
  124.  
  125. extern VOID            (* __regargs WriteLine)(struct RastPort *RPort,LONG Line,LONG Width,UBYTE *Buffer,struct RastPort *Temp);
  126. extern VOID            (* __regargs ReadLine)(struct RastPort *RPort,LONG Line,LONG Width,UBYTE *Buffer,struct RastPort *Temp);
  127.  
  128. extern struct MapTable         TransferTable[],
  129.                  RenderTable[];
  130.  
  131.     /* Luminance.asm */
  132.  
  133. extern LONG             LumR[256],
  134.                  LumG[256],
  135.                  LumB[256];
  136.