home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / devices / prtgfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.5 KB  |  79 lines

  1. #ifndef DEVICES_PRTGFX_H
  2. #define DEVICES_PRTGFX_H
  3. /*
  4. ** $Filename: devices/prtgfx.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 1.12 $
  7. ** $Date: 90/07/26 $
  8. **
  9. ** printer.device structure definitions
  10. **
  11. ** (C) Copyright 1987-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include "exec/types.h"
  17. #endif
  18.  
  19. #define PCMYELLOW 0 
  20. #define PCMMAGENTA 1 
  21. #define PCMCYAN 2 
  22. #define PCMBLACK 3 
  23. #define PCMBLUE PCMYELLOW 
  24. #define PCMGREEN PCMMAGENTA 
  25. #define PCMRED PCMCYAN 
  26. #define PCMWHITE PCMBLACK 
  27.  
  28. union colorEntry {
  29.  ULONG colorLong; 
  30.  UBYTE colorByte[4]; 
  31.  BYTE colorSByte[4]; 
  32. };
  33.  
  34. struct PrtInfo { 
  35.  int (*pi_render)(); 
  36.  struct RastPort *pi_rp; 
  37.  struct RastPort *pi_temprp; 
  38.  UWORD *pi_RowBuf; 
  39.  UWORD *pi_HamBuf; 
  40.  union colorEntry *pi_ColorMap; 
  41.  union colorEntry *pi_ColorInt; 
  42.  union colorEntry *pi_HamInt; 
  43.  union colorEntry *pi_Dest1Int; 
  44.  union colorEntry *pi_Dest2Int; 
  45.  UWORD *pi_ScaleX; 
  46.  UWORD *pi_ScaleXAlt; 
  47.  UBYTE *pi_dmatrix; 
  48.  UWORD *pi_TopBuf; 
  49.  UWORD *pi_BotBuf; 
  50.  
  51.  UWORD pi_RowBufSize; 
  52.  UWORD pi_HamBufSize; 
  53.  UWORD pi_ColorMapSize; 
  54.  UWORD pi_ColorIntSize; 
  55.  UWORD pi_HamIntSize; 
  56.  UWORD pi_Dest1IntSize; 
  57.  UWORD pi_Dest2IntSize; 
  58.  UWORD pi_ScaleXSize; 
  59.  UWORD pi_ScaleXAltSize; 
  60.  
  61.  UWORD pi_PrefsFlags; 
  62.  ULONG pi_special; 
  63.  UWORD pi_xstart; 
  64.  UWORD pi_ystart; 
  65.  UWORD pi_width; 
  66.  UWORD pi_height; 
  67.  ULONG pi_pc; 
  68.  ULONG pi_pr; 
  69.  UWORD pi_ymult; 
  70.  UWORD pi_ymod; 
  71.  WORD pi_ety; 
  72.  UWORD pi_xpos; 
  73.  UWORD pi_threshold; 
  74.  UWORD pi_tempwidth; 
  75.  UWORD pi_flags; 
  76. };
  77.  
  78. #endif 
  79.