home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / defines / graphics.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-08  |  6.8 KB  |  213 lines

  1. #ifndef DEFINES_GRAPHICS_H
  2. #define DEFINES_GRAPHICS_H
  3.  
  4. #ifndef  EXEC_TYPES_H
  5. #   include <exec/types.h>
  6. #endif
  7. #ifndef AROS_LIBCALL_H
  8. #   include <aros/libcall.h>
  9. #endif
  10.  
  11. /*
  12.     Defines
  13. */
  14. #define CloneRastPort(rp) \
  15.     AROS_LC1(struct RastPort *, CloneRastPort, \
  16.     AROS_LCA(struct RastPort *, rp, A1), \
  17.     struct GfxBase *, GfxBase, 178, Graphics)
  18.  
  19. #define CloseFont(textFont) \
  20.     AROS_LC1(void, CloseFont, \
  21.     AROS_LCA(struct TextFont *, textFont, A1), \
  22.     struct GfxBase *, GfxBase, 13, Graphics)
  23.  
  24. #define CreateRastPort() \
  25.     AROS_LC0(struct RastPort *, CreateRastPort, \
  26.     struct GfxBase *, GfxBase, 177, Graphics)
  27.  
  28. #define DeinitRastPort(rp) \
  29.     AROS_LC1(void, DeinitRastPort, \
  30.     AROS_LCA(struct RastPort *, rp, A1), \
  31.     struct GfxBase *, GfxBase, 179, Graphics)
  32.  
  33. #define Draw(rp, x, y) \
  34.     AROS_LC3(void, Draw, \
  35.     AROS_LCA(struct RastPort *, rp, A1), \
  36.     AROS_LCA(LONG             , x, D0), \
  37.     AROS_LCA(LONG             , y, D1), \
  38.     struct GfxBase *, GfxBase, 41, Graphics)
  39.  
  40. #define DrawEllipse(rp, xCenter, yCenter, a, b) \
  41.     AROS_LC5(void, DrawEllipse, \
  42.     AROS_LCA(struct RastPort *, rp, A1), \
  43.     AROS_LCA(LONG             , xCenter, D0), \
  44.     AROS_LCA(LONG             , yCenter, D1), \
  45.     AROS_LCA(LONG             , a, D2), \
  46.     AROS_LCA(LONG             , b, D3), \
  47.     struct GfxBase *, GfxBase, 30, Graphics)
  48.  
  49. #define EraseRect(rp, xMin, yMin, xMax, yMax) \
  50.     AROS_LC5(void, EraseRect, \
  51.     AROS_LCA(struct RastPort *, rp, A1), \
  52.     AROS_LCA(LONG             , xMin, D0), \
  53.     AROS_LCA(LONG             , yMin, D1), \
  54.     AROS_LCA(LONG             , xMax, D2), \
  55.     AROS_LCA(LONG             , yMax, D3), \
  56.     struct GfxBase *, GfxBase, 135, Graphics)
  57.  
  58. #define FreeRastPort(rp) \
  59.     AROS_LC1(void, FreeRastPort, \
  60.     AROS_LCA(struct RastPort *, rp, A1), \
  61.     struct GfxBase *, GfxBase, 180, Graphics)
  62.  
  63. #define GetAPen(rp) \
  64.     AROS_LC1(ULONG, GetAPen, \
  65.     AROS_LCA(struct RastPort *, rp, A0), \
  66.     struct GfxBase *, GfxBase, 143, Graphics)
  67.  
  68. #define GetBPen(rp) \
  69.     AROS_LC1(ULONG, GetBPen, \
  70.     AROS_LCA(struct RastPort *, rp, A0), \
  71.     struct GfxBase *, GfxBase, 144, Graphics)
  72.  
  73. #define GetDrMd(rp) \
  74.     AROS_LC1(ULONG, GetDrMd, \
  75.     AROS_LCA(struct RastPort *, rp, A0), \
  76.     struct GfxBase *, GfxBase, 145, Graphics)
  77.  
  78. #define GetOutlinePen(rp) \
  79.     AROS_LC1(ULONG, GetOutlinePen, \
  80.     AROS_LCA(struct RastPort *, rp, A0), \
  81.     struct GfxBase *, GfxBase, 146, Graphics)
  82.  
  83. #define InitRastPort(rp) \
  84.     AROS_LC1(BOOL, InitRastPort, \
  85.     AROS_LCA(struct RastPort *, rp, A1), \
  86.     struct GfxBase *, GfxBase, 33, Graphics)
  87.  
  88. #define Move(rp, x, y) \
  89.     AROS_LC3(void, Move, \
  90.     AROS_LCA(struct RastPort *, rp, A1), \
  91.     AROS_LCA(LONG             , x, D0), \
  92.     AROS_LCA(LONG             , y, D1), \
  93.     struct GfxBase *, GfxBase, 40, Graphics)
  94.  
  95. #define OpenFont(textAttr) \
  96.     AROS_LC1(struct TextFont *, OpenFont, \
  97.     AROS_LCA(struct TextAttr *, textAttr, A0), \
  98.     struct GfxBase *, GfxBase, 12, Graphics)
  99.  
  100. #define PolyDraw(rp, count, polyTable) \
  101.     AROS_LC3(void, PolyDraw, \
  102.     AROS_LCA(struct RastPort *, rp, A1), \
  103.     AROS_LCA(LONG             , count, D0), \
  104.     AROS_LCA(WORD            *, polyTable, A0), \
  105.     struct GfxBase *, GfxBase, 56, Graphics)
  106.  
  107. #define ReadPixel(rp, x, y) \
  108.     AROS_LC3(ULONG, ReadPixel, \
  109.     AROS_LCA(struct RastPort *, rp, A1), \
  110.     AROS_LCA(LONG             , x, D0), \
  111.     AROS_LCA(LONG             , y, D1), \
  112.     struct GfxBase *, GfxBase, 53, Graphics)
  113.  
  114. #define RectFill(rp, xMin, yMin, xMax, yMax) \
  115.     AROS_LC5(void, RectFill, \
  116.     AROS_LCA(struct RastPort *, rp, A1), \
  117.     AROS_LCA(LONG             , xMin, D0), \
  118.     AROS_LCA(LONG             , yMin, D1), \
  119.     AROS_LCA(LONG             , xMax, D2), \
  120.     AROS_LCA(LONG             , yMax, D3), \
  121.     struct GfxBase *, GfxBase, 51, Graphics)
  122.  
  123. #define ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax) \
  124.     AROS_LC7(void, ScrollRaster, \
  125.     AROS_LCA(struct RastPort *, rp, A1), \
  126.     AROS_LCA(LONG             , dx, D0), \
  127.     AROS_LCA(LONG             , dy, D1), \
  128.     AROS_LCA(LONG             , xMin, D2), \
  129.     AROS_LCA(LONG             , yMin, D3), \
  130.     AROS_LCA(LONG             , xMax, D4), \
  131.     AROS_LCA(LONG             , yMax, D5), \
  132.     struct GfxBase *, GfxBase, 66, Graphics)
  133.  
  134. #define SetABPenDrMd(rp, apen, bpen, drawMode) \
  135.     AROS_LC4(void, SetABPenDrMd, \
  136.     AROS_LCA(struct RastPort *, rp, A1), \
  137.     AROS_LCA(ULONG            , apen, D0), \
  138.     AROS_LCA(ULONG            , bpen, D1), \
  139.     AROS_LCA(ULONG            , drawMode, D2), \
  140.     struct GfxBase *, GfxBase, 149, Graphics)
  141.  
  142. #define SetAPen(rp, pen) \
  143.     AROS_LC2(void, SetAPen, \
  144.     AROS_LCA(struct RastPort *, rp, A1), \
  145.     AROS_LCA(ULONG            , pen, D0), \
  146.     struct GfxBase *, GfxBase, 57, Graphics)
  147.  
  148. #define SetBPen(rp, pen) \
  149.     AROS_LC2(void, SetBPen, \
  150.     AROS_LCA(struct RastPort *, rp, A1), \
  151.     AROS_LCA(ULONG            , pen, D0), \
  152.     struct GfxBase *, GfxBase, 58, Graphics)
  153.  
  154. #define SetDrMd(rp, drawMode) \
  155.     AROS_LC2(void, SetDrMd, \
  156.     AROS_LCA(struct RastPort *, rp, A1), \
  157.     AROS_LCA(ULONG            , drawMode, D0), \
  158.     struct GfxBase *, GfxBase, 59, Graphics)
  159.  
  160. #define SetFont(rp, textFont) \
  161.     AROS_LC2(void, SetFont, \
  162.     AROS_LCA(struct RastPort *, rp, A1), \
  163.     AROS_LCA(struct TextFont *, textFont, A0), \
  164.     struct GfxBase *, GfxBase, 11, Graphics)
  165.  
  166. #define SetOutlinePen(rp, pen) \
  167.     AROS_LC2(ULONG, SetOutlinePen, \
  168.     AROS_LCA(struct RastPort *, rp, A0), \
  169.     AROS_LCA(ULONG,             pen, D0), \
  170.     struct GfxBase *, GfxBase, 163, Graphics)
  171.  
  172. #define SetRast(rp, pen) \
  173.     AROS_LC2(void, SetRast, \
  174.     AROS_LCA(struct RastPort *, rp, A1), \
  175.     AROS_LCA(ULONG            , pen, D0), \
  176.     struct GfxBase *, GfxBase, 39, Graphics)
  177.  
  178. #define SetRPAttrsA(rp, tags) \
  179.     AROS_LC2(void, SetRPAttrsA, \
  180.     AROS_LCA(struct RastPort *, rp, A0), \
  181.     AROS_LCA(struct TagItem  *, tags, A1), \
  182.     struct GfxBase *, GfxBase, 173, Graphics)
  183.  
  184. #define SetWriteMask(rp, mask) \
  185.     AROS_LC2(ULONG, SetWriteMask, \
  186.     AROS_LCA(struct RastPort *, rp,   A0), \
  187.     AROS_LCA(ULONG            , mask, D0), \
  188.     struct GfxBase *, GfxBase, 164, Graphics)
  189.  
  190. #define Text(rp, string, count) \
  191.     AROS_LC3(void, Text, \
  192.     AROS_LCA(struct RastPort *, rp, A1), \
  193.     AROS_LCA(STRPTR           , string, A0), \
  194.     AROS_LCA(ULONG            , count, D0), \
  195.     struct GfxBase *, GfxBase, 10, Graphics)
  196.  
  197. #define TextLength(rp, string, count) \
  198.     AROS_LC3(WORD, TextLength, \
  199.     AROS_LCA(struct RastPort *, rp, A1), \
  200.     AROS_LCA(STRPTR           , string, A0), \
  201.     AROS_LCA(ULONG            , count, D0), \
  202.     struct GfxBase *, GfxBase, 9, Graphics)
  203.  
  204. #define WritePixel(rp, x, y) \
  205.     AROS_LC3(LONG, WritePixel, \
  206.     AROS_LCA(struct RastPort *, rp, A1), \
  207.     AROS_LCA(LONG             , x, D0), \
  208.     AROS_LCA(LONG             , y, D1), \
  209.     struct GfxBase *, GfxBase, 54, Graphics)
  210.  
  211.  
  212. #endif /* DEFINES_GRAPHICS_H */
  213.