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

  1. #ifndef GRAPHICS_GFXBASE_H
  2. #define GRAPHICS_GFXBASE_H
  3. /*
  4. ** $Filename: graphics/gfxbase.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 37.3 $
  7. ** $Date: 91/04/15 $
  8. **
  9. ** graphics base definitions
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_LISTS_H
  16. #include <exec/lists.h>
  17. #endif
  18. #ifndef EXEC_LIBRARIES_H
  19. #include <exec/libraries.h>
  20. #endif
  21. #ifndef EXEC_INTERRUPTS_H
  22. #include <exec/interrupts.h>
  23. #endif
  24.  
  25. struct GfxBase
  26. {
  27.  struct Library LibNode;
  28.  struct View *ActiView;
  29.  struct copinit *copinit; 
  30.  long *cia; 
  31.  long *blitter; 
  32.  UWORD *LOFlist;
  33.  UWORD *SHFlist;
  34.  struct bltnode *blthd,*blttl;
  35.  struct bltnode *bsblthd,*bsblttl;
  36.  struct Interrupt vbsrv,timsrv,bltsrv;
  37.  struct List TextFonts;
  38.  struct TextFont *DefaultFont;
  39.  UWORD Modes; 
  40.  BYTE VBlank;
  41.  BYTE Debug;
  42.  WORD BeamSync;
  43.  WORD system_bplcon0; 
  44.  UBYTE SpriteReserved;
  45.  UBYTE bytereserved;
  46.  UWORD Flags;
  47.  WORD BlitLock;
  48.  WORD BlitNest;
  49.  
  50.  struct List BlitWaitQ;
  51.  struct Task *BlitOwner;
  52.  struct List TOF_WaitQ;
  53.  UWORD DisplayFlags; 
  54.  
  55.  struct SimpleSprite **SimpleSprites;
  56.  UWORD MaxDisplayRow; 
  57.  UWORD MaxDisplayColumn; 
  58.  UWORD NormalDisplayRows;
  59.  UWORD NormalDisplayColumns;
  60.  
  61.  UWORD NormalDPMX; 
  62.  UWORD NormalDPMY; 
  63.  struct SignalSemaphore *LastChanceMemory;
  64.  UWORD *LCMptr;
  65.  UWORD MicrosPerLine; 
  66.  UWORD MinDisplayColumn;
  67.  UBYTE ChipRevBits0;
  68.  UBYTE crb_reserved[5];
  69.  UWORD monitor_id; 
  70.  ULONG hedley[8];
  71.  ULONG hedley_sprites[8] ; 
  72.  ULONG hedley_sprites1[8] ; 
  73.  WORD hedley_count;
  74.  UWORD hedley_flags;
  75.  WORD hedley_tmp;
  76.  LONG *hash_table;
  77.  UWORD current_tot_rows;
  78.  UWORD current_tot_cclks;
  79.  UBYTE hedley_hint;
  80.  UBYTE hedley_hint2;
  81.  ULONG nreserved[4];
  82.  LONG *a2024_sync_raster;
  83.  WORD control_delta_pal;
  84.  WORD control_delta_ntsc;
  85.  struct MonitorSpec *current_monitor;
  86.  struct List MonitorList;
  87.  struct MonitorSpec *default_monitor;
  88.  struct SignalSemaphore *MonitorListSemaphore;
  89.  VOID *DisplayInfoDataBase;
  90.  WORD lapad; 
  91.  struct SignalSemaphore *ActiViewCprSemaphore;
  92.  ULONG *UtilityBase; 
  93.  ULONG *ExecBase; 
  94.  };
  95.  
  96. #define NTSC 1
  97. #define GENLOC 2
  98. #define PAL 4
  99. #define TODA_SAFE 8
  100.  
  101. #define BLITMSG_FAULT 4
  102.  
  103.  
  104. #define GFXB_BIG_BLITS 0
  105. #define GFXB_HR_AGNUS 0
  106. #define GFXB_HR_DENISE 1
  107.  
  108. #define GFXF_BIG_BLITS 1
  109. #define GFXF_HR_AGNUS 1
  110. #define GFXF_HR_DENISE 2
  111.  
  112. #define GRAPHICSNAME "graphics.library"
  113.  
  114. #endif 
  115.