1 #ifndef DEVICES_PRTGFX_H
    2 #define DEVICES_PRTGFX_H
    3 
    4 /*
    5 	printer graphics driver definitions (V45)
    6 
    7 	Copyright © 2002 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef GRAPHICS_RASTPORT_H
   11 # include <graphics/rastport.h>
   12 #endif
   13 
   14 #pragma pack(2)
   15 
   16 
   17 #define PCMYELLOW   0
   18 #define PCMMAGENTA  1
   19 #define PCMCYAN     2
   20 #define PCMBLACK    3
   21 #define PCMBLUE     PCMYELLOW
   22 #define PCMGREEN    PCMMAGENTA
   23 #define PCMRED      PCMCYAN
   24 #define PCMWHITE    PCMBLACK
   25 
   26 
   27 union colorEntry
   28 {
   29 	ULONG colorLong;
   30 	UBYTE colorByte[4];
   31 	BYTE  colorSByte[4];
   32 };
   33 
   34 
   35 struct PrtInfo
   36 {
   37 	LONG             (*pi_render)(VOID);
   38 	struct RastPort   *pi_rp;
   39 	struct RastPort   *pi_temprp;
   40 	UWORD             *pi_RowBuf;
   41 	UWORD             *pi_HamBuf;
   42 	union colorEntry  *pi_ColorMap;
   43 	union colorEntry  *pi_ColorInt;
   44 	union colorEntry  *pi_HamInt;
   45 	union colorEntry  *pi_Dest1Int;
   46 	union colorEntry  *pi_Dest2Int;
   47 	UWORD             *pi_ScaleX;
   48 	UWORD             *pi_ScaleXAlt;
   49 	UBYTE             *pi_dmatrix;
   50 	UWORD             *pi_TopBuf;
   51 	UWORD             *pi_BotBuf;
   52 
   53 	UWORD              pi_RowBufSize;
   54 	UWORD              pi_HamBufSize;
   55 	UWORD              pi_ColorMapSize;
   56 	UWORD              pi_ColorIntSize;
   57 	UWORD              pi_HamIntSize;
   58 	UWORD              pi_Dest1IntSize;
   59 	UWORD              pi_Dest2IntSize;
   60 	UWORD              pi_ScaleXSize;
   61 	UWORD              pi_ScaleXAltSize;
   62 
   63 	UWORD              pi_PrefsFlags;
   64 	ULONG              pi_special;
   65 	UWORD              pi_xstart;
   66 	UWORD              pi_ystart;
   67 	UWORD              pi_width;
   68 	UWORD              pi_height;
   69 	ULONG              pi_pc;
   70 	ULONG              pi_pr;
   71 	UWORD              pi_ymult;
   72 	UWORD              pi_ymod;
   73 	WORD               pi_ety;
   74 	UWORD              pi_xpos;
   75 	UWORD              pi_threshold;
   76 	UWORD              pi_tempwidth;
   77 	UWORD              pi_flags;
   78 
   79 	/*** V44 ***/
   80 
   81 	UWORD             *pi_ReduceBuf;
   82 	UWORD              pi_ReduceBufSize;
   83 	struct Hook       *pi_SourceHook;
   84 	ULONG             *pi_InvertHookBuf;
   85 };
   86 
   87 
   88 #pragma pack()
   89 
   90 #endif /* DEVICES_PRTGFX_H */