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

  1. #ifndef GRAPHICS_RASTPORT_H
  2. #define GRAPHICS_RASTPORT_H
  3. /*
  4. ** $Filename: graphics/rastport.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 37.0 $
  7. ** $Date: 91/01/07 $
  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.  
  23. struct AreaInfo
  24. {
  25.  WORD *VctrTbl; 
  26.  WORD *VctrPtr; 
  27.  BYTE *FlagTbl; 
  28.  BYTE *FlagPtr; 
  29.  WORD Count; 
  30.  WORD MaxCount; 
  31.  WORD FirstX,FirstY; 
  32. };
  33.  
  34. struct TmpRas
  35. {
  36.  BYTE *RasPtr;
  37.  LONG Size;
  38. };
  39.  
  40.  
  41. struct GelsInfo
  42. {
  43.  BYTE sprRsrvd; 
  44.  UBYTE Flags; 
  45.  struct VSprite *gelHead, *gelTail; 
  46.  
  47.  WORD *nextLine;
  48.  
  49.  WORD **lastColor;
  50.  struct collTable *collHandler; 
  51.  WORD leftmost, rightmost, topmost, bottommost;
  52.  APTR firstBlissObj,lastBlissObj; 
  53. };
  54.  
  55. struct RastPort
  56. {
  57.  struct Layer *Layer;
  58.  struct BitMap *BitMap;
  59.  UWORD *AreaPtrn; 
  60.  struct TmpRas *TmpRas;
  61.  struct AreaInfo *AreaInfo;
  62.  struct GelsInfo *GelsInfo;
  63.  UBYTE Mask; 
  64.  BYTE FgPen; 
  65.  BYTE BgPen; 
  66.  BYTE AOlPen; 
  67.  BYTE DrawMode; 
  68.  BYTE AreaPtSz; 
  69.  BYTE linpatcnt; 
  70.  BYTE dummy;
  71.  UWORD Flags; 
  72.  UWORD LinePtrn; 
  73.  WORD cp_x, cp_y; 
  74.  UBYTE minterms[8];
  75.  WORD PenWidth;
  76.  WORD PenHeight;
  77.  struct TextFont *Font; 
  78.  UBYTE AlgoStyle; 
  79.  UBYTE TxFlags; 
  80.  UWORD TxHeight; 
  81.  UWORD TxWidth; 
  82.  UWORD TxBaseline; 
  83.  WORD TxSpacing; 
  84.  APTR *RP_User;
  85.  ULONG longreserved[2];
  86. #ifndef GFX_RASTPORT_1_2
  87.  UWORD wordreserved[7]; 
  88.  UBYTE reserved[8]; 
  89. #endif
  90. };
  91.  
  92.  
  93. #define JAM1 0 
  94. #define JAM2 1 
  95. #define COMPLEMENT 2 
  96. #define INVERSVID 4 
  97.  
  98.  
  99. #define FRST_DOT 0x01 
  100. #define ONE_DOT 0x02 
  101. #define DBUFFER 0x04 
  102.  
  103.  
  104.  
  105. #define AREAOUTLINE 0x08 
  106. #define NOCROSSFILL 0x20 
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. #endif 
  114.