home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / DC-POS24.LZX / pOS / pOSxA.lzx / pOSxA / graphics / view.h < prev   
Encoding:
C/C++ Source or Header  |  1997-03-12  |  2.3 KB  |  117 lines

  1. #ifndef GRAPHICS_VIEW_H
  2. #define GRAPHICS_VIEW_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_PGFX_VIEW_H
  12. #include <p:pGFX/View.h>
  13. #endif
  14. #ifndef __INC_POS_PGFX_COLOR_H
  15. #include <p:pGFX/Color.h>
  16. #endif
  17. #ifndef EXEC_SEMAPHORES_H
  18. #include <exec/semaphores.h>
  19. #endif
  20. #ifndef GRAPHICS_GFX_H
  21. #include <graphics/gfx.h>
  22. #endif
  23. #ifndef GRAPHICS_DISPLAYINFO_H
  24. #include <graphics/displayinfo.h>
  25. #endif
  26. #ifndef HARDWARE_CUSTOM_H
  27. //#include <hardware/custom.h>
  28. #endif
  29.  
  30. struct ViewPort
  31. {
  32.   struct Node         vp_Node;
  33.   struct pOS_MonFile *vp_MonFile;
  34.   UBYTE               vp_Reserved[32];
  35. };
  36.  
  37.  
  38. struct View
  39. {
  40.   struct Node v_Node;
  41.  
  42.   struct List v_VPList;
  43.   SWORD      DxOffset;
  44.   SWORD      DyOffset;
  45.   ULONG      v_Flags;
  46.  
  47.   UBYTE      v_Reserved[64];
  48. };
  49.  
  50.  
  51. struct RasInfo
  52. {
  53.   struct RasInfo *Next;
  54.   struct BitMap  *BitMap;
  55.   SLONG           RxOffset;
  56.   SLONG           RyOffset;
  57. };
  58.  
  59. struct ColorMap
  60. {
  61.   struct pOS_GfxLibrary  *cm_Base;
  62.   ULONG                   cm_UserData[2];
  63.   UWORD                   cm_Type;
  64.   UWORD                   cm_Pad;
  65.   ULONG                   cm_Flags;
  66.   ULONG                   Count;
  67.   struct pOS_ColorMapEx  *cm_Ex;
  68.   UBYTE                   cm_Reserved[32];
  69. };
  70.  
  71.  
  72.  
  73. #define OBP_Precision _PxA_IGNORE
  74. #define OBP_FailIfBad _PxA_IGNORE
  75.  
  76.  
  77. #ifdef __IGNORE_NOT_SUPPORTED__
  78.  
  79.  #define ECS_SPECIFIC
  80.  
  81.  #define GENLOCK_VIDEO   0x0002
  82.  #define LACE            0x0004
  83.  #define DOUBLESCAN      0x0008
  84.  #define SUPERHIRES      0x0020
  85.  #define PFBA            0x0040
  86.  #define EXTRA_HALFBRITE 0x0080
  87.  #define GENLOCK_AUDIO   0x0100
  88.  #define DUALPF          0x0400
  89.  #define HAM             0x0800
  90.  #define EXTENDED_MODE   0x1000
  91.  #define VP_HIDE         0x2000
  92.  #define SPRITES         0x4000
  93.  #define HIRES           0x8000
  94.  
  95. /*\
  96. *** ACHTUNG: Nicht kompatibel
  97. \*/
  98.  #define PENB_EXCLUSIVE   0
  99.  #define PENB_NO_SETCOLOR 1
  100.  #define PENF_EXCLUSIVE   (1l<<PENB_EXCLUSIVE)
  101.  #define PENF_NO_SETCOLOR (1l<<PENB_NO_SETCOLOR)
  102.  #define PEN_EXCLUSIVE    PENF_EXCLUSIVE
  103.  #define PEN_NO_SETCOLOR  PENF_NO_SETCOLOR
  104.  
  105.  #define PRECISION_EXACT 0
  106.  #define PRECISION_IMAGE 0
  107.  #define PRECISION_ICON  0
  108.  #define PRECISION_GUI   0
  109.  
  110. #endif /** __IGNORE_NOT_SUPPORTED__ **/
  111.  
  112.  
  113.  
  114.  
  115.  
  116. #endif    /* GRAPHICS_VIEW_H */
  117.