home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Pascal / MAXONPASCAL2.DMS / in.adf / INCLUDE / graphics / view.h < prev   
Encoding:
Text File  |  1994-07-25  |  5.1 KB  |  219 lines

  1. {$if not def GRAPHICS_VIEW_H} CONST GRAPHICS_VIEW_H=0;
  2.  
  3. { *****************************************************************
  4.   ** KickPascal-Include-Datei "graphics/view.h" zu Kickstart 3.0 **
  5.   ***************************************************************** }
  6.  
  7. TYPE p_ViewPort = ^ViewPort;
  8. TYPE p_ColorMap = ^ColorMap;
  9. TYPE p_RasInfo = ^RasInfo;
  10. TYPE p_ViewExtra = ^ViewExtra;
  11. TYPE p_View = ^View;
  12. TYPE p_ViewPortExtra = ^ViewPortExtra;
  13. TYPE p_PaletteExtra = ^PaletteExtra;
  14. TYPE p_DBufInfo = ^DBufInfo;
  15.  
  16. {$if not def EXEC_SEMAPHORES_H;incl "exec/semaphores.h";endif}
  17. {$if not def GRAPHICS_GFX_H;incl "graphics/gfx.h";endif}
  18. {$if not def GRAPHICS_COPPER_H;incl "graphics/copper.h";endif}
  19. {$if not def GRAPHICS_GFXNODES_H;incl "graphics/gfxnodes.h";endif}
  20. {$if not def GRAPHICS_MONITOR_H;incl "graphics/monitor.h";endif}
  21. {$if not def GRAPHICS_DISPLAYINFO_H;incl "graphics/displayinfo.h";endif}
  22. {$if not def HARDWARE_CUSTOM_H;incl "hardware/custom.h";endif}
  23. {$if not def UTILITY_TAGITEM_H;incl "utility/tagitem.h";endif}
  24.  
  25.  
  26. TYPE ViewPort = RECORD
  27.  Next             : p_ViewPort;
  28.  ColorMap         : p_ColorMap;
  29.  DspIns           : p_CopList;
  30.  SprIns           : p_CopList;
  31.  ClrIns           : p_CopList;
  32.  UCopIns          : p_UCopList;
  33.  DWidth           : Integer;
  34.  DHeight          : Integer;
  35.  DxOffset         : Integer;
  36.  DyOffset         : Integer;
  37.  Modes            : Word;
  38.  SpritePriorities : Byte;
  39.  ExtendedModes    : Byte;
  40.  RasInfo          : p_RasInfo;
  41. END;
  42.  
  43. TYPE View = RECORD
  44.  ViewPort   : p_ViewPort;
  45.  LOFCprList : p_cprlist;
  46.  SHFCprList : p_cprlist;
  47.  DyOffset   : Integer;
  48.  DxOffset   : Integer;
  49.  Modes      : Word;
  50. END;
  51.  
  52. TYPE ViewExtra = RECORD
  53.  n       : ExtendedNode;
  54.  View    : p_View;
  55.  Monitor : p_MonitorSpec;
  56.  TopLine : Word;
  57. END;
  58.  
  59. TYPE ViewPortExtra = RECORD
  60.  n           : ExtendedNode;
  61.  ViewPort    : p_ViewPort;
  62.  DisplayClip : Rectangle;
  63.  VecTable    : Ptr;
  64.  DriverData  : ARRAY[0..1] of Ptr;
  65.  Flags       : Word;
  66.  Origin      : ARRAY[0..1] of Point;
  67. END;
  68.  
  69. CONST
  70.  VPXB_FREE_ME           = 0;
  71.  VPXF_FREE_ME           = $1;
  72.  VPXB_LAST              = 1;
  73.  VPXF_LAST              = $2;
  74.  VPXB_STRADDLES_256     = 4;
  75.  VPXF_STRADDLES_256     = $10;
  76.  VPXB_STRADDLES_512     = 5
  77.  VPXF_STRADDLES_512     = $20;
  78.  
  79.  EXTEND_VSTRUCT         = $1000;
  80.  
  81.  VPF_A2024      = $40;
  82.  VPF_TENHZ      = $20;
  83.  VPB_A2024      = 6;
  84.  VPB_TENHZ      = 4;
  85.  
  86.  
  87.  GENLOCK_VIDEO   = $0002;
  88.  LACE            = $0004;
  89.  SUPERHIRES      = $0020;
  90.  PFBA            = $0040;
  91.  EXTRA_HALFBRITE = $0080;
  92.  GENLOCK_AUDIO   = $0100;
  93.  DUALPF          = $0400;
  94.  HAM             = $0800;
  95.  EXTENDED_MODE   = $1000;
  96.  VP_HIDE         = $2000;
  97.  SPRITES         = $4000;
  98.  HIRES           = $8000;
  99.  
  100.  
  101. TYPE RasInfo = RECORD
  102.  Next     : p_RasInfo;
  103.  BitMap   : p_BitMap;
  104.  RxOffset : Integer;
  105.  RyOffset : Integer;
  106. END;
  107.  
  108. TYPE ColorMap = RECORD
  109.  Flags             : Byte;
  110.  _Type             : Byte;   { "_" ergänzt }
  111.  Count             : Word;
  112.  ColorTable        : Ptr;
  113.  cm_vpe            : p_ViewPortExtra;
  114.  TransparencyBits  : ^Word;
  115.  TransparencyPlane : Byte;
  116.  reserved1         : Byte;
  117.  reserved2         : Word;
  118.  cm_vp             : p_ViewPort;
  119.  NormalDisplayInfo : Ptr;
  120.  CoerceDisplayInfo : Ptr;
  121.  cm_batch_items    : p_TagItem;
  122.  VPModeID          : Long;
  123.  PalExtra          : p_PaletteExtra;
  124.  SpriteBase_Even   : Word;
  125.  SpriteBase_Odd    : Word;
  126.  Bp_0_base         : Word;
  127.  Bp_1_base         : Word;
  128. END;
  129.  
  130. CONST
  131.  COLORMAP_TYPE_V1_2  = $00;
  132.  COLORMAP_TYPE_V1_4  = $01;
  133.  COLORMAP_TYPE_V36   = COLORMAP_TYPE_V1_4;
  134.  COLORMAP_TYPE_V39   = $02;
  135.  
  136. CONST
  137.  COLORMAP_TRANSPARENCY   = $01;
  138.  COLORPLANE_TRANSPARENCY = $02;
  139.  BORDER_BLANKING         = $04;
  140.  BORDER_NOTRANSPARENCY   = $08;
  141.  VIDEOCONTROL_BATCH      = $10;
  142.  USER_COPPER_CLIP        = $20;
  143.  BORDERSPRITES           = $40;
  144.  
  145.  CMF_CMTRANS    = 0;
  146.  CMF_CPTRANS    = 1;
  147.  CMF_BRDRBLNK   = 2;
  148.  CMF_BRDNTRAN   = 3;
  149.  CMF_BRDRSPRT   = 6;
  150.  
  151.  SPRITERESN_ECS = 0;
  152.  
  153.  SPRITERESN_140NS       = 1;
  154.  SPRITERESN_70NS        = 2;
  155.  SPRITERESN_35NS        = 3;
  156.  SPRITERESN_DEFAULT     = -1;
  157.  
  158.  CMAB_FULLPALETTE       = 0;
  159.  CMAF_FULLPALETTE       = $1;
  160.  
  161. TYPE PaletteExtra = RECORD
  162.  pe_Semaphore   : SignalSemaphore;
  163.  pe_FirstFree   : Word;
  164.  pe_NFree       : Word;
  165.  pe_FirstShared : Word;
  166.  pe_NShared     : Word;
  167.  pe_RefCnt      : ^Byte;
  168.  pe_AllocList   : ^Byte;
  169.  pe_ViewPort    : p_ViewPort;
  170.  pe_SharableColors : Word;
  171. end;
  172.  
  173. CONST
  174.  PENB_EXCLUSIVE   = 0;
  175.  PENB_NO_SETCOLOR = 1;
  176.  
  177.  PENF_EXCLUSIVE   = $1;
  178.  PENF_NO_SETCOLOR = $2;
  179.  
  180.  PEN_EXCLUSIVE    = PENF_EXCLUSIVE;
  181.  PEN_NO_SETCOLOR  = PENF_NO_SETCOLOR;
  182.  
  183.  PRECISION_EXACT        = -1;
  184.  PRECISION_IMAGE        =  0;
  185.  PRECISION_ICON         = 16;
  186.  PRECISION_GUI          = 32;
  187.  
  188.  OBP_Precision = $84000000;
  189.  OBP_FailIfBad = $84000001;
  190.  
  191.  MVP_OK         = 0;
  192.  MVP_NO_MEM     = 1;
  193.  MVP_NO_VPE     = 2;
  194.  MVP_NO_DSPINS  = 3;
  195.  MVP_NO_DISPLAY = 4;
  196.  
  197.  MCOP_OK        = 0;
  198.  MCOP_NO_MEM    = 1;
  199.  MCOP_NOP       = 2;
  200.  
  201. TYPE DBufInfo = RECORD
  202.  dbi_Link1      : Ptr;
  203.  dbi_Count1     : Long;
  204.  dbi_SafeMessage: Message;
  205.  dbi_UserData1  : Ptr;
  206.  dbi_Link2      : Ptr;
  207.  dbi_Count2     : Long;
  208.  dbi_DispMessage: Message;
  209.  dbi_UserData2  : Ptr;
  210.  dbi_MatchLong  : Long;
  211.  dbi_CopPtr1    : Ptr;
  212.  dbi_CopPtr2    : Ptr;
  213.  dbi_CopPtr3    : Ptr;
  214.  dbi_BeamPos1   : Word;
  215.  dbi_BeamPos2   : Word;
  216. end;
  217.  
  218. {$endif}
  219.