home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / graphics / rastport.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.8 KB  |  105 lines

  1. #ifndef    GRAPHICS_RASTPORT_H
  2. #define    GRAPHICS_RASTPORT_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef __INC_POS_PGFX_RASTPORT_H
  12. #include <p:pGFX/RastPort.h>
  13. #endif
  14. #ifndef GRAPHICS_GFX_H
  15. #include <graphics/gfx.h>
  16. #endif
  17.  
  18.  
  19. struct RastPort
  20. {
  21.   APTR            rp_Base;
  22.  
  23. /* Trick */
  24. /*  ULONG           rp_BaseUse[2]; */
  25.   UBYTE Mask;
  26.   UBYTE _Pad3[7];
  27.  
  28.   struct Layer   *Layer;
  29.   struct BitMap  *BitMap;
  30.   UWORD           Flags;
  31.   SLONG           cp_x,cp_y;
  32.  
  33.   struct TextFont *Font;
  34.   UWORD           AlgoStyle;
  35.   UWORD           TxFlags;
  36.   UWORD           TxHeight;
  37.   UWORD           TxWidth;
  38.   UWORD           TxBaseline;
  39.   SWORD           TxSpacing;
  40. // ...
  41. };
  42.  
  43.  
  44. #define JAM1        DRMD_Jam1
  45. #define JAM2        DRMD_Jam2
  46. #define COMPLEMENT  DRMD_Complement
  47. #define INVERSVID   DRMD_Invers
  48.  
  49. #define FRST_DOT    RASTPORTF_FirstDot
  50. #define ONE_DOT     RASTPORTF_OneDot
  51. #define DBUFFER     RASTPORTF_DBuffer
  52. #define AREAOUTLINE RASTPORTF_AreaOutline
  53. #define NOCROSSFILL RASTPORTF_NoCrossFill
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. #ifdef __IGNORE_NOT_SUPPORTED__
  65.  
  66.  struct AreaInfo
  67.  {
  68.      WORD   *VctrTbl;
  69.      WORD   *VctrPtr;
  70.      BYTE    *FlagTbl;
  71.      BYTE    *FlagPtr;
  72.      WORD   Count;
  73.      WORD   MaxCount;
  74.      WORD   FirstX,FirstY;
  75.  };
  76.  
  77.  struct TmpRas
  78.  {
  79.      BYTE *RasPtr;
  80.      LONG Size;
  81.  };
  82.  
  83.  struct GelsInfo
  84.  {
  85.      BYTE sprRsrvd;
  86.      UBYTE Flags;
  87.      struct VSprite *gelHead, *gelTail;
  88.      WORD *nextLine;
  89.      WORD **lastColor;
  90.      struct collTable *collHandler;
  91.      WORD leftmost, rightmost, topmost, bottommost;
  92.     APTR firstBlissObj,lastBlissObj;
  93.  };
  94.  
  95.  
  96.  
  97. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104. #endif    /* GRAPHICS_RASTPORT_H */
  105.