home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Reference / Includes_and_Autodocs_3.5 / include / devices / prtgfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-10-19  |  3.5 KB  |  91 lines

  1. #ifndef DEVICES_PRTGFX_H
  2. #define DEVICES_PRTGFX_H
  3. /*
  4. **    $VER: prtgfx.h 44.1 (19.10.1999)
  5. **    Includes Release 44.1
  6. **
  7. **    graphics printer driver structure definitions
  8. **
  9. **    (C) Copyright 1987-1999 Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef GRAPHICS_RASTPORT_H
  14. #include <graphics/rastport.h>
  15. #endif
  16.  
  17. /****************************************************************************/
  18.  
  19. #define    PCMYELLOW    0        /* byte index for yellow */
  20. #define    PCMMAGENTA    1        /* byte index for magenta */
  21. #define    PCMCYAN        2        /* byte index for cyan */
  22. #define    PCMBLACK    3        /* byte index for black */
  23. #define PCMBLUE        PCMYELLOW    /* byte index for blue */
  24. #define PCMGREEN    PCMMAGENTA    /* byte index for green */
  25. #define PCMRED        PCMCYAN        /* byte index for red */
  26. #define PCMWHITE    PCMBLACK    /* byte index for white */
  27.  
  28. /****************************************************************************/
  29.  
  30. union colorEntry
  31. {
  32.     ULONG    colorLong;    /* quick access to all of YMCB */
  33.     UBYTE    colorByte[4];    /* 1 entry for each of YMCB */
  34.     BYTE    colorSByte[4];    /* ditto (except signed) */
  35. };
  36.  
  37. /****************************************************************************/
  38.  
  39. struct PrtInfo /* printer info */
  40. {
  41.     LONG            (*pi_render)();        /* PRIVATE - DO NOT USE! */
  42.     struct RastPort *    pi_rp;            /* PRIVATE - DO NOT USE! */
  43.     struct RastPort *    pi_temprp;        /* PRIVATE - DO NOT USE! */
  44.     UWORD *            pi_RowBuf;        /* PRIVATE - DO NOT USE! */
  45.     UWORD *            pi_HamBuf;        /* PRIVATE - DO NOT USE! */
  46.     union colorEntry *    pi_ColorMap;        /* PRIVATE - DO NOT USE! */
  47.     union colorEntry *    pi_ColorInt;        /* color intensities for entire row */
  48.     union colorEntry *    pi_HamInt;        /* PRIVATE - DO NOT USE! */
  49.     union colorEntry *    pi_Dest1Int;        /* PRIVATE - DO NOT USE! */
  50.     union colorEntry *    pi_Dest2Int;        /* PRIVATE - DO NOT USE! */
  51.     UWORD *            pi_ScaleX;        /* array of scale values for X */
  52.     UWORD *            pi_ScaleXAlt;        /* PRIVATE - DO NOT USE! */
  53.     UBYTE *            pi_dmatrix;        /* pointer to dither matrix */
  54.     UWORD *            pi_TopBuf;        /* PRIVATE - DO NOT USE! */
  55.     UWORD *            pi_BotBuf;        /* PRIVATE - DO NOT USE! */
  56.  
  57.     UWORD            pi_RowBufSize;        /* PRIVATE - DO NOT USE! */
  58.     UWORD            pi_HamBufSize;        /* PRIVATE - DO NOT USE! */
  59.     UWORD            pi_ColorMapSize;    /* PRIVATE - DO NOT USE! */
  60.     UWORD            pi_ColorIntSize;    /* PRIVATE - DO NOT USE! */
  61.     UWORD            pi_HamIntSize;        /* PRIVATE - DO NOT USE! */
  62.     UWORD            pi_Dest1IntSize;    /* PRIVATE - DO NOT USE! */
  63.     UWORD            pi_Dest2IntSize;    /* PRIVATE - DO NOT USE! */
  64.     UWORD            pi_ScaleXSize;        /* PRIVATE - DO NOT USE! */
  65.     UWORD            pi_ScaleXAltSize;    /* PRIVATE - DO NOT USE! */
  66.  
  67.     UWORD            pi_PrefsFlags;        /* PRIVATE - DO NOT USE! */
  68.     ULONG            pi_special;        /* PRIVATE - DO NOT USE! */
  69.     UWORD            pi_xstart;        /* PRIVATE - DO NOT USE! */
  70.     UWORD            pi_ystart;        /* PRIVATE - DO NOT USE! */
  71.     UWORD            pi_width;        /* source width (in pixels) */
  72.     UWORD            pi_height;        /* source height (in pixels) */
  73.     ULONG            pi_pc;            /* PRIVATE - DO NOT USE! */
  74.     ULONG            pi_pr;            /* PRIVATE - DO NOT USE! */
  75.     UWORD            pi_ymult;        /* PRIVATE - DO NOT USE! */
  76.     UWORD            pi_ymod;        /* PRIVATE - DO NOT USE! */
  77.     WORD            pi_ety;            /* PRIVATE - DO NOT USE! */
  78.     UWORD            pi_xpos;        /* offset to start printing picture */
  79.     UWORD            pi_threshold;        /* threshold value (from prefs) */
  80.     UWORD            pi_tempwidth;        /* PRIVATE - DO NOT USE! */
  81.     UWORD            pi_flags;        /* PRIVATE - DO NOT USE! */
  82.  
  83.     /* V44 additions */
  84.     UWORD *            pi_ReduceBuf;        /* PRIVATE - DO NOT USE! */
  85.     UWORD            pi_ReduceBufSize;    /* PRIVATE - DO NOT USE! */
  86.     struct Hook *        pi_SourceHook;        /* PRIVATE - DO NOT USE! */
  87.     ULONG *            pi_InvertHookBuf;    /* RESERVED - DO NOT USE! */
  88. };
  89.  
  90. #endif    /* DEVICES_PRTGFX_H */
  91.