home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD2.1 / includes / graphics / gfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-11  |  914 b   |  59 lines

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