home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / cbm / nduk-v37.lha / V37 / include / graphics / gfxmacros.h < prev    next >
C/C++ Source or Header  |  1991-11-27  |  1KB  |  47 lines

  1. #ifndef    GRAPHICS_GFXMACROS_H
  2. #define    GRAPHICS_GFXMACROS_H
  3. /*
  4. **    $Filename: graphics/gfxmacros.h $
  5. **    $Release: 2.04 Includes, V37.4 $
  6. **    $Revision: 37.0 $
  7. **    $Date: 91/01/07 $
  8. **
  9. **
  10. **
  11. **    (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #ifndef  GRAPHICS_RASTPORT_H
  20. #include <graphics/rastport.h>
  21. #endif
  22.  
  23. #define ON_DISPLAY    custom.dmacon = BITSET|DMAF_RASTER;
  24. #define OFF_DISPLAY    custom.dmacon = BITCLR|DMAF_RASTER;
  25. #define ON_SPRITE    custom.dmacon = BITSET|DMAF_SPRITE;
  26. #define OFF_SPRITE    custom.dmacon = BITCLR|DMAF_SPRITE;
  27.  
  28. #define ON_VBLANK    custom.intena = BITSET|INTF_VERTB;
  29. #define OFF_VBLANK    custom.intena = BITCLR|INTF_VERTB;
  30.  
  31. #define SetOPen(w,c)    {(w)->AOlPen = c;(w)->Flags |= AREAOUTLINE;}
  32. #define SetDrPt(w,p)    {(w)->LinePtrn = p;(w)->Flags |= FRST_DOT;(w)->linpatcnt=15;}
  33. #define SetWrMsk(w,m)    {(w)->Mask = m;}
  34. #define SetAfPt(w,p,n)    {(w)->AreaPtrn = p;(w)->AreaPtSz = n;}
  35.  
  36. #define BNDRYOFF(w)    {(w)->Flags &= ~AREAOUTLINE;}
  37.  
  38. #define CINIT(c,n)      UCopperListInit(c,n);
  39. #define CMOVE(c,a,b)    { CMove(c,&a,b);CBump(c); }
  40. #define CWAIT(c,a,b)    { CWait(c,a,b);CBump(c); }
  41. #define CEND(c)    { CWAIT(c,10000,255); }
  42.  
  43. #define DrawCircle(rp,cx,cy,r)    DrawEllipse(rp,cx,cy,r,r);
  44. #define AreaCircle(rp,cx,cy,r)    AreaEllipse(rp,cx,cy,r,r);
  45.  
  46. #endif    /* GRAPHICS_GFXMACROS_H */
  47.