home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / graphics / gfx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  837 b   |  61 lines

  1. #ifndef GRAPHICS_GFX_H
  2. #define GRAPHICS_GFX_H
  3. /*
  4. ** $Filename: graphics/gfx.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 37.0 $
  7. ** $Date: 91/01/07 $
  8. **
  9. ** general include file for application programs
  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. #define BITSET 0x8000
  20. #define BITCLR 0
  21.  
  22. #define AGNUS
  23. #ifdef AGNUS
  24. #define TOBB(a) ((long)(a))
  25. #else
  26. #define TOBB(a) ((long)(a)>>1) 
  27. #endif
  28.  
  29. struct Rectangle
  30. {
  31.  WORD MinX,MinY;
  32.  WORD MaxX,MaxY;
  33. };
  34.  
  35. struct Rect32
  36. {
  37.  LONG MinX,MinY;
  38.  LONG MaxX,MaxY;
  39. };
  40.  
  41. typedef struct tPoint
  42. {
  43.  WORD x,y;
  44. } Point;
  45.  
  46. typedef UBYTE *PLANEPTR;
  47.  
  48. struct BitMap
  49. {
  50.  UWORD BytesPerRow;
  51.  UWORD Rows;
  52.  UBYTE Flags;
  53.  UBYTE Depth;
  54.  UWORD pad;
  55.  PLANEPTR Planes[8];
  56. };
  57.  
  58. #define RASSIZE(w,h) ((h)*( ((w)+15)>>3&0xFFFE))
  59.  
  60. #endif 
  61.