home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / graphics / gfxmacros.h
Encoding:
C/C++ Source or Header  |  1997-02-08  |  924 b   |  41 lines

  1. #ifndef GRAPHICS_GFXMACROS_H
  2. #define GRAPHICS_GFXMACROS_H
  3.  
  4. /*
  5.     (C) 1995-96 AROS - The Amiga Replacement OS
  6.     $Id: gfxmacros.h,v 1.3 1996/12/06 12:52:35 aros Exp $
  7.  
  8.     Desc: AmigaOS include file graphics/gfxmacros.h
  9.     Lang: english
  10. */
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #   include <exec/types.h>
  14. #endif
  15.  
  16. #ifndef  GRAPHICS_RASTPORT_H
  17. #   include <graphics/rastport.h>
  18. #endif
  19.  
  20. /* Some macros which should be functions... */
  21. #define SetDrPt(w,p) \
  22.     { \
  23.     (w)->LinePtrn = p; \
  24.     (w)->Flags |= FRST_DOT|0x10; \
  25.     (w)->linpatcnt = 15; \
  26.     }
  27. #define SetAfPt(w,p,n) \
  28.     { \
  29.     (w)->AreaPtrn = p; \
  30.     (w)->AreaPtSz = n; \
  31.     }
  32. #define SetAOlPen(w,p)  SetOutlinePen(w,p)
  33. #define SetWrMsk(w,m)   SetWriteMask(w,m)
  34. #define BNDRYOFF(w)     {(w)->Flags &= ~AREAOUTLINE;}
  35.  
  36. /* Shortcuts */
  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. #endif /* GRAPHICS_GFXMACROS_H */
  41.