home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 032.lha / include / graphics / rastport.g < prev    next >
Encoding:
Text File  |  1987-05-17  |  3.5 KB  |  115 lines

  1. type
  2.     AreaInfo_t = struct {
  3.     *uint ai_VctrTbl;
  4.     *uint ai_VctrPtr;
  5.     *ushort ai_FlagTbl;
  6.     *ushort ai_FlagPtr;
  7.     uint ai_Count;
  8.     uint ai_MaxCount;
  9.     uint ai_FirstX, ai_FirstY;
  10.     },
  11.  
  12.     TmpRas_t = struct {
  13.     PLANEPTR tr_RasPtr;
  14.     ulong tr_Size;
  15.     },
  16.  
  17.     GelsInfo_t = struct {
  18.     ushort gi_sprRsrvd;
  19.     ushort gi_Flags;
  20.     *VSprite_t gi_gelHead, gi_gelTail;
  21.     *[8]uint gi_nextLine;
  22.     *[8]*uint gi_lastColor;
  23.     *collTable_t gi_collHandler;
  24.     uint gi_leftmost, gi_rightmost, gi_topmost, gi_bottommost;
  25.     *byte gi_firstBlissObj, gi_lastBlissObj;
  26.     },
  27.  
  28.     RastPort_t = struct {
  29.     *Layer_t rp_Layer;
  30.     *BitMap_t rp_BitMap;
  31.     *uint rp_AreaPtrn;
  32.     *TmpRas_t rp_TmpRas;
  33.     *AreaInfo_t rp_AreaInfo;
  34.     *GelsInfo_t rp_GelsInfo;
  35.     ushort rp_Mask;
  36.     ushort rp_FgPen, rp_BgPen, rp_AOlPen;
  37.     ushort rp_DrawMode;
  38.     short rp_AreaPtSz;
  39.     ushort rp_linpatcnt;
  40.     ushort rp_dummy;
  41.     uint rp_Flags;
  42.     uint rp_LinePtrn;
  43.     int rp_cp_x, rp_cp_y;
  44.     [8]ushort rp_minterms;
  45.     uint rp_PenWidth, rp_PenHeight;
  46.     *TextFont_t rp_Font;
  47.     ushort rp_AlgoStype, rp_TxFlags;
  48.     uint rp_TxHeight, rp_TxWidth, rp_TxBaseLine, rp_txSpacing;
  49.     *byte rp_RP_User;
  50.     [2]ulong rp_longreserved;
  51.     [7]uint rp_wordreserved;
  52.     [8]byte rp_reserved;
  53.     };
  54.  
  55. ushort
  56.     JAM1    = 0,
  57.     JAM2    = 1,
  58.     COMPLEMENT    = 2,
  59.     INVERSVID    = 4,
  60.  
  61.     FRST_DOT    = 0x01,
  62.     ONE_DOT    = 0x02,
  63.     DBUFFER    = 0x04,
  64.  
  65.     AREAOUTLINE = 0x08,
  66.     NOCROSSFILL = 0x20;
  67.  
  68. extern
  69.     AreaCircle(*RastPort_t rp; uint cx, xy, r)bool,
  70.     AreaDraw(*RastPort_t rp; ulong x, y)bool,
  71.     AreaEllipse(*RastPort_t rp; ulong cx, xy, a, b)bool,
  72.     AreaEnd(*RastPort_t rp)bool,
  73.     AreaMove(*RastPort_t rp; ulong x, y)bool,
  74.     BltBitMapRastPort(*BitMap_t src; ulong srcX, srcY;
  75.               *RastPort_t dst; ulong dstX, dstY;
  76.               ulong sizX, sizY, minTerm)void,
  77.     BltClr(*byte ptr; ulong byteCount, flags)void,
  78.     BltMaskBitMapRastPort(*BitMap_t src; ulong srcX, srcY;
  79.               *RastPort_t dst; ulong dstX, dstY;
  80.               ulong sizX, sizY, minTerm;
  81.               *uint blitMask)void,
  82.     BltPattern(*RastPort_t rp; ulong mask, x1, y1, maxx, maxy, bytecnt)void,
  83.     BltTemplate(*uint src; ulong srcX, srcMod;
  84.         *RastPort_t rp; ulong dstX, dstY, sizX, sizY)void,
  85.     BOUNDARY_OFF(*RastPort_t rp)void,
  86.     ClearEOL(*RastPort_t rp)void,
  87.     ClearScreen(*RastPort_t rp)void,
  88.     ClipBlit(*RastPort_t src; ulong srcX, srcY;
  89.          *RastPort_t dst; ulong dstX, dstY;
  90.          ulong sizX, sizY, minterm)ulong,
  91.     Draw(*RastPort_t rp; ulong x, y)void,
  92.     DrawCircle(*RastPort_t rp; uint cx, cy, r)void,
  93.     DrawEllipse(*RastPort_t rp; ulong cx, cy, a, b)void,
  94.     Flood(*RastPort_t rp; ulong mode, x, y)bool,
  95.     InitArea(*AreaInfo_t areaInfo; *byte buffer; ulong maxVectors)void,
  96.     InitRastPort(*RastPort_t rp)void,
  97.     InitTmpRas(*TmpRas_t tmpRas; PLANEPTR buffer; ulong size)void,
  98.     Move(*RastPort_t rp; ulong x, y)void,
  99.     PolyDraw(*RastPort_t rp; ulong count; *uint array)void,
  100.     ReadPixel(*RastPort_t rp; ulong x, y)short,
  101.     RectFill(*RastPort_t rp; ulong xmin, ymin, xmax, ymax)void,
  102.     ScrollRaster(*RastPort_t rp; ulong dx, dy, xmin, ymin, xmax, ymax)void,
  103.     SetAfPt(*RastPort_t rp; *uint pattern; short size)void,
  104.     SetAPen(*RastPort_t rp; ulong pen)void,
  105.     SetBPen(*RastPort_t rp; ulong pen)void,
  106.     SetDrMd(*RastPort_t rp; ulong mode)void,
  107.     SetDrPt(*RastPort_t rp; uint pattern)void,
  108.     SetFont(*RastPort_t rp; *TextFont_t textFont)void,
  109.     SetOPen(*RastPort_t rp; ushort pen)void,
  110.     SetRast(*RastPort_t rp; ulong pen)void,
  111.     SetWrMsk(*RastPort_t rp; ushort mask)void,
  112.     Text(*RastPort_t rp; *char string; ulong count)void,
  113.     TextLength(*RastPort_t rp; *char string; ulong count)ulong,
  114.     WritePixel(*RastPort_t rp; ulong x, y)bool;
  115.