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

  1. #ifndef    GRAPHICS_GFXMACROS_H
  2. #define    GRAPHICS_GFXMACROS_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 __INC_POS_PROTO_PGFX2_H
  15. #include <p:proto/pGFX2.h>
  16. #endif
  17. #ifndef  GRAPHICS_RASTPORT_H
  18. #include <graphics/rastport.h>
  19. #endif
  20.  
  21.  
  22. #define SetDrPt(w,p)    pOS_SetLineFillPattern((pOS_RastPort*)w,(ULONG)p,15);
  23. #define SetAfPt(w,p,n)  pOS_SetAreaFillPattern((pOS_RastPort*)w,(UWORD*)p,n);
  24.  
  25. #define SetOPen(w,c)    {pOS_SetOPen(w,c); (w)->rp_Flags |= RASTPORTF_AreaOutline;}
  26. #define SetWrMsk(w,m)   {(w)->Mask = m;}
  27.  
  28. #define SafeSetOutlinePen(w,c)  pOS_SetOPen(w,c);
  29. #define SafeSetWriteMask(w,m)    {}
  30. //     {if (GfxBase->LibNode.lib_Version<39) { (w)->Mask = (m);} else SetWriteMask(w,m); }
  31.  
  32. //#define GetOutlinePen(rp) GetOPen(rp)
  33.  
  34. #define BNDRYOFF(w)    {(w)->rp_Flags &= ~RASTPORTF_AreaOutline;}
  35.  
  36.  
  37. #define DrawCircle(rp,cx,cy,r)    DrawEllipse(rp,cx,cy,r,r);
  38. #define AreaCircle(rp,cx,cy,r)    AreaEllipse(rp,cx,cy,r,r);
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45. #ifdef __IGNORE_NOT_SUPPORTED__
  46.  
  47.  #define ON_DISPLAY      ;
  48.  #define OFF_DISPLAY     ;
  49.  #define ON_SPRITE       ;
  50.  #define OFF_SPRITE      ;
  51.  #define ON_VBLANK       ;
  52.  #define OFF_VBLANK      ;
  53.  
  54.  
  55. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  56.  
  57.  
  58.  
  59. #endif    /* GRAPHICS_GFXMACROS_H */
  60.