home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / graphics / clip.h next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.5 KB  |  90 lines

  1. #ifndef GRAPHICS_CLIP_H
  2. #define GRAPHICS_CLIP_H
  3. /*
  4. ** $Filename: graphics/clip.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 37.2 $
  7. ** $Date: 91/10/24 $
  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_GFX_H
  20. #include <graphics/gfx.h>
  21. #endif
  22. #ifndef EXEC_SEMAPHORES_H
  23. #include <exec/semaphores.h>
  24. #endif
  25. #ifndef UTILITY_HOOKS_H
  26. #include <utility/hooks.h>
  27. #endif
  28.  
  29.  
  30.  
  31.  
  32. #define NEWLOCKS
  33.  
  34. struct Layer
  35. {
  36.  struct Layer *front,*back;
  37.  struct ClipRect *ClipRect; 
  38.  struct RastPort *rp;
  39.  struct Rectangle bounds;
  40.  UBYTE reserved[4];
  41.  UWORD priority; 
  42.  UWORD Flags; 
  43.  struct BitMap *SuperBitMap;
  44.  struct ClipRect *SuperClipRect; 
  45.  
  46.  APTR Window; 
  47.  WORD Scroll_X,Scroll_Y;
  48.  struct ClipRect *cr,*cr2,*crnew; 
  49.  struct ClipRect *SuperSaveClipRects; 
  50.  struct ClipRect *_cliprects; 
  51.  struct Layer_Info *LayerInfo; 
  52.  struct SignalSemaphore Lock;
  53.  struct Hook *BackFill;
  54.  ULONG reserved1;
  55.  struct Region *ClipRegion;
  56.  struct Region *saveClipRects; 
  57.  WORD Width,Height; 
  58.  UBYTE reserved2[18];
  59.  
  60.  struct Region *DamageList; 
  61. };
  62.  
  63. struct ClipRect
  64. {
  65.  struct ClipRect *Next; 
  66.  struct ClipRect *prev; 
  67.  struct Layer *lobs; 
  68.  struct BitMap *BitMap; 
  69.  struct Rectangle bounds; 
  70.  void *_p1; 
  71.  void *_p2; 
  72.  LONG reserved; 
  73. #ifdef NEWCLIPRECTS_1_1
  74.  LONG Flags; 
  75.  
  76. #endif 
  77. };
  78.  
  79.  
  80. #define CR_NEEDS_NO_CONCEALED_RASTERS 1
  81. #define CR_NEEDS_NO_LAYERBLIT_DAMAGE 2
  82.  
  83.  
  84. #define ISLESSX 1
  85. #define ISLESSY 2
  86. #define ISGRTRX 4
  87. #define ISGRTRY 8
  88.  
  89. #endif 
  90.