home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / graphics / gfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  799 b   |  49 lines

  1. #ifndef GRAPHICS_GFX_H
  2. #define GRAPHICS_GFX_H
  3. /*
  4. **    $Filename: graphics/gfx.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    general include file for application programs 
  8. **
  9. **    (C) Copyright 1985,1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #define BITSET    0x8000
  14. #define BITCLR    0
  15.  
  16. #define AGNUS
  17. #ifdef AGNUS
  18. #define TOBB(a)         ((long)(a))
  19. #else
  20. #define TOBB(a)         ((long)(a)>>1)  /* convert Chip adr to Bread Board Adr */
  21. #endif
  22.  
  23. struct Rectangle
  24. {
  25.     SHORT   MinX,MinY;
  26.     SHORT   MaxX,MaxY;
  27. };
  28.  
  29. typedef struct tPoint
  30. {
  31.     WORD x,y;
  32. } Point;
  33.  
  34. typedef UBYTE *PLANEPTR;
  35.  
  36. struct BitMap
  37. {
  38.     UWORD   BytesPerRow;
  39.     UWORD   Rows;
  40.     UBYTE   Flags;
  41.     UBYTE   Depth;
  42.     UWORD   pad;
  43.     PLANEPTR Planes[8];
  44. };
  45.  
  46. #define RASSIZE(w,h)    ((h)*( (w+15)>>3&0xFFFE))
  47.  
  48. #endif    /* GRAPHICS_GFX_H */
  49.