home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / graphics / clip.h next >
Encoding:
C/C++ Source or Header  |  1997-03-12  |  1.5 KB  |  78 lines

  1. #ifndef    GRAPHICS_CLIP_H
  2. #define    GRAPHICS_CLIP_H
  3.  
  4. /*******************************************************************
  5.  pOS / Amiga adapt
  6. *******************************************************************/
  7.  
  8. #ifndef EXEC_TYPES_H
  9. #include <exec/types.h>
  10. #endif
  11. #ifndef __INC_POS_PLAYER_CLIP_H
  12. #include <p:pLayer/Clip.h>
  13. #endif
  14. #ifndef GRAPHICS_GFX_H
  15. #include <graphics/gfx.h>
  16. #endif
  17. #ifndef EXEC_SEMAPHORES_H
  18. #include <exec/semaphores.h>
  19. #endif
  20. #ifndef    GRAPHICS_REGIONS_H
  21. #include <graphics/regions.h>
  22. #endif
  23.  
  24.  
  25. struct Layer
  26. {
  27.   struct Node          ly_Node;
  28.   struct Layer        *ly_Parent;
  29.   struct Layer        *ly_Next;
  30.   struct Layer        *ly_Child;
  31.   struct SignalSemaphore Lock;
  32.   struct Rectangle     bounds;
  33.   struct Rectangle     ly_ChildBounds;
  34.   struct Region        ly_DamageList;
  35.   struct LayerInfo   *ly_LayerInfo;
  36.   ULONG               Flags;
  37.   struct RastPort    *rp;
  38.   struct MinList      ly_VisClipList;
  39.   struct MinList      ly_SupClipList;
  40.   SWORD               ly_ScrollX;
  41.   SWORD               ly_ScrollY;
  42.   APTR                ly_SupGfxMap;
  43.   APTR                Window;
  44. // ...
  45. };
  46.  
  47.  
  48. struct ClipRect
  49. {
  50.   struct MinNode   cr_Node;
  51.   struct Rectangle bounds;
  52.   APTR             cr_GfxMap;
  53. };
  54.  
  55.  
  56.  
  57.  
  58.  
  59. #ifdef __IGNORE_NOT_SUPPORTED__
  60.  
  61.  #define NEWLOCKS
  62.  #define CR_NEEDS_NO_CONCEALED_RASTERS  0
  63.  #define CR_NEEDS_NO_LAYERBLIT_DAMAGE   0
  64.  #define ISLESSX 0
  65.  #define ISLESSY 0
  66.  #define ISGRTRX 0
  67.  #define ISGRTRY 0
  68.  
  69. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77. #endif    /* GRAPHICS_CLIP_H */
  78.