home *** CD-ROM | disk | FTP | other *** search
/ MACD 4 / MACD4.iso / Emulatory / AROS / include / clib / graphics_protos.bak < prev    next >
Encoding:
Text File  |  1978-03-06  |  11.3 KB  |  325 lines

  1. #ifndef CLIB_GRAPHICS_PROTOS_H
  2. #define CLIB_GRAPHICS_PROTOS_H
  3.  
  4. #ifndef AROS_LIBCALL_H
  5. #   include <aros/libcall.h>
  6. #endif
  7.  
  8. /*
  9.     Prototypes
  10. */
  11. AROS_LP1(struct RastPort *, CloneRastPort,
  12.     AROS_LPA(struct RastPort *, rp, A1),
  13.     struct GfxBase *, GfxBase, 178, Graphics)
  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. AROS_LP1(void, CloseFont,
  20.     AROS_LPA(struct TextFont *, textFont, A1),
  21.     struct GfxBase *, GfxBase, 13, Graphics)
  22. #define CloseFont(textFont) \
  23.     AROS_LC1(void, CloseFont, \
  24.     AROS_LCA(struct TextFont *, textFont, A1), \
  25.     struct GfxBase *, GfxBase, 13, Graphics)
  26.  
  27. AROS_LP0(struct RastPort *, CreateRastPort,
  28.     struct GfxBase *, GfxBase, 177, Graphics)
  29. #define CreateRastPort() \
  30.     AROS_LC0(struct RastPort *, CreateRastPort, \
  31.     struct GfxBase *, GfxBase, 177, Graphics)
  32.  
  33. AROS_LP1(void, DeinitRastPort,
  34.     AROS_LPA(struct RastPort *, rp, A1),
  35.     struct GfxBase *, GfxBase, 179, Graphics)
  36. #define DeinitRastPort(rp) \
  37.     AROS_LC1(void, DeinitRastPort, \
  38.     AROS_LCA(struct RastPort *, rp, A1), \
  39.     struct GfxBase *, GfxBase, 179, Graphics)
  40.  
  41. AROS_LP3(void, Draw,
  42.     AROS_LPA(struct RastPort *, rp, A1),
  43.     AROS_LPA(long             , x, D0),
  44.     AROS_LPA(long             , y, D1),
  45.     struct GfxBase *, GfxBase, 41, Graphics)
  46. #define Draw(rp, x, y) \
  47.     AROS_LC3(void, Draw, \
  48.     AROS_LCA(struct RastPort *, rp, A1), \
  49.     AROS_LCA(long             , x, D0), \
  50.     AROS_LCA(long             , y, D1), \
  51.     struct GfxBase *, GfxBase, 41, Graphics)
  52.  
  53. AROS_LP5(void, DrawEllipse,
  54.     AROS_LPA(struct RastPort *, rp, A1),
  55.     AROS_LPA(long             , xCenter, D0),
  56.     AROS_LPA(long             , yCenter, D1),
  57.     AROS_LPA(long             , a, D2),
  58.     AROS_LPA(long             , b, D3),
  59.     struct GfxBase *, GfxBase, 30, Graphics)
  60. #define DrawEllipse(rp, xCenter, yCenter, a, b) \
  61.     AROS_LC5(void, DrawEllipse, \
  62.     AROS_LCA(struct RastPort *, rp, A1), \
  63.     AROS_LCA(long             , xCenter, D0), \
  64.     AROS_LCA(long             , yCenter, D1), \
  65.     AROS_LCA(long             , a, D2), \
  66.     AROS_LCA(long             , b, D3), \
  67.     struct GfxBase *, GfxBase, 30, Graphics)
  68.  
  69. AROS_LP5(void, EraseRect,
  70.     AROS_LPA(struct RastPort *, rp, A1),
  71.     AROS_LPA(long             , xMin, D0),
  72.     AROS_LPA(long             , yMin, D1),
  73.     AROS_LPA(long             , xMax, D2),
  74.     AROS_LPA(long             , yMax, D3),
  75.     struct GfxBase *, GfxBase, 135, Graphics)
  76. #define EraseRect(rp, xMin, yMin, xMax, yMax) \
  77.     AROS_LC5(void, EraseRect, \
  78.     AROS_LCA(struct RastPort *, rp, A1), \
  79.     AROS_LCA(long             , xMin, D0), \
  80.     AROS_LCA(long             , yMin, D1), \
  81.     AROS_LCA(long             , xMax, D2), \
  82.     AROS_LCA(long             , yMax, D3), \
  83.     struct GfxBase *, GfxBase, 135, Graphics)
  84.  
  85. AROS_LP1(void, FreeRastPort,
  86.     AROS_LPA(struct RastPort *, rp, A1),
  87.     struct GfxBase *, GfxBase, 180, Graphics)
  88. #define FreeRastPort(rp) \
  89.     AROS_LC1(void, FreeRastPort, \
  90.     AROS_LCA(struct RastPort *, rp, A1), \
  91.     struct GfxBase *, GfxBase, 180, Graphics)
  92.  
  93. AROS_LP1(ULONG, GetAPen,
  94.     AROS_LPA(struct RastPort *, rp, A0),
  95.     struct GfxBase *, GfxBase, 143, Graphics)
  96. #define GetAPen(rp) \
  97.     AROS_LC1(ULONG, GetAPen, \
  98.     AROS_LCA(struct RastPort *, rp, A0), \
  99.     struct GfxBase *, GfxBase, 143, Graphics)
  100.  
  101. AROS_LP1(ULONG, GetBPen,
  102.     AROS_LPA(struct RastPort *, rp, A0),
  103.     struct GfxBase *, GfxBase, 144, Graphics)
  104. #define GetBPen(rp) \
  105.     AROS_LC1(ULONG, GetBPen, \
  106.     AROS_LCA(struct RastPort *, rp, A0), \
  107.     struct GfxBase *, GfxBase, 144, Graphics)
  108.  
  109. AROS_LP1(ULONG, GetDrMd,
  110.     AROS_LPA(struct RastPort *, rp, A0),
  111.     struct GfxBase *, GfxBase, 145, Graphics)
  112. #define GetDrMd(rp) \
  113.     AROS_LC1(ULONG, GetDrMd, \
  114.     AROS_LCA(struct RastPort *, rp, A0), \
  115.     struct GfxBase *, GfxBase, 145, Graphics)
  116.  
  117. AROS_LP1(ULONG, GetOutlinePen,
  118.     AROS_LPA(struct RastPort *, rp, A0),
  119.     struct GfxBase *, GfxBase, 146, Graphics)
  120. #define GetOutlinePen(rp) \
  121.     AROS_LC1(ULONG, GetOutlinePen, \
  122.     AROS_LCA(struct RastPort *, rp, A0), \
  123.     struct GfxBase *, GfxBase, 146, Graphics)
  124.  
  125. AROS_LP1(BOOL, InitRastPort,
  126.     AROS_LPA(struct RastPort *, rp, A1),
  127.     struct GfxBase *, GfxBase, 33, Graphics)
  128. #define InitRastPort(rp) \
  129.     AROS_LC1(BOOL, InitRastPort, \
  130.     AROS_LCA(struct RastPort *, rp, A1), \
  131.     struct GfxBase *, GfxBase, 33, Graphics)
  132.  
  133. AROS_LP3(void, Move,
  134.     AROS_LPA(struct RastPort *, rp, A1),
  135.     AROS_LPA(long             , x, D0),
  136.     AROS_LPA(long             , y, D1),
  137.     struct GfxBase *, GfxBase, 40, Graphics)
  138. #define Move(rp, x, y) \
  139.     AROS_LC3(void, Move, \
  140.     AROS_LCA(struct RastPort *, rp, A1), \
  141.     AROS_LCA(long             , x, D0), \
  142.     AROS_LCA(long             , y, D1), \
  143.     struct GfxBase *, GfxBase, 40, Graphics)
  144.  
  145. AROS_LP1(struct TextFont *, OpenFont,
  146.     AROS_LPA(struct TextAttr *, textAttr, A0),
  147.     struct GfxBase *, GfxBase, 12, Graphics)
  148. #define OpenFont(textAttr) \
  149.     AROS_LC1(struct TextFont *, OpenFont, \
  150.     AROS_LCA(struct TextAttr *, textAttr, A0), \
  151.     struct GfxBase *, GfxBase, 12, Graphics)
  152.  
  153. AROS_LP3(void, PolyDraw,
  154.     AROS_LPA(struct RastPort *, rp, A1),
  155.     AROS_LPA(long             , count, D0),
  156.     AROS_LPA(WORD            *, polyTable, A0),
  157.     struct GfxBase *, GfxBase, 56, Graphics)
  158. #define PolyDraw(rp, count, polyTable) \
  159.     AROS_LC3(void, PolyDraw, \
  160.     AROS_LCA(struct RastPort *, rp, A1), \
  161.     AROS_LCA(long             , count, D0), \
  162.     AROS_LCA(WORD            *, polyTable, A0), \
  163.     struct GfxBase *, GfxBase, 56, Graphics)
  164.  
  165. AROS_LP3(ULONG, ReadPixel,
  166.     AROS_LPA(struct RastPort *, rp, A1),
  167.     AROS_LPA(long             , x, D0),
  168.     AROS_LPA(long             , y, D1),
  169.     struct GfxBase *, GfxBase, 53, Graphics)
  170. #define ReadPixel(rp, x, y) \
  171.     AROS_LC3(ULONG, ReadPixel, \
  172.     AROS_LCA(struct RastPort *, rp, A1), \
  173.     AROS_LCA(long             , x, D0), \
  174.     AROS_LCA(long             , y, D1), \
  175.     struct GfxBase *, GfxBase, 53, Graphics)
  176.  
  177. AROS_LP5(void, RectFill,
  178.     AROS_LPA(struct RastPort *, rp, A1),
  179.     AROS_LPA(long             , xMin, D0),
  180.     AROS_LPA(long             , yMin, D1),
  181.     AROS_LPA(long             , xMax, D2),
  182.     AROS_LPA(long             , yMax, D3),
  183.     struct GfxBase *, GfxBase, 51, Graphics)
  184. #define RectFill(rp, xMin, yMin, xMax, yMax) \
  185.     AROS_LC5(void, RectFill, \
  186.     AROS_LCA(struct RastPort *, rp, A1), \
  187.     AROS_LCA(long             , xMin, D0), \
  188.     AROS_LCA(long             , yMin, D1), \
  189.     AROS_LCA(long             , xMax, D2), \
  190.     AROS_LCA(long             , yMax, D3), \
  191.     struct GfxBase *, GfxBase, 51, Graphics)
  192.  
  193. AROS_LP7(void, ScrollRaster,
  194.     AROS_LPA(struct RastPort *, rp, A1),
  195.     AROS_LPA(long             , dx, D0),
  196.     AROS_LPA(long             , dy, D1),
  197.     AROS_LPA(long             , xMin, D2),
  198.     AROS_LPA(long             , yMin, D3),
  199.     AROS_LPA(long             , xMax, D4),
  200.     AROS_LPA(long             , yMax, D5),
  201.     struct GfxBase *, GfxBase, 66, Graphics)
  202. #define ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax) \
  203.     AROS_LC7(void, ScrollRaster, \
  204.     AROS_LCA(struct RastPort *, rp, A1), \
  205.     AROS_LCA(long             , dx, D0), \
  206.     AROS_LCA(long             , dy, D1), \
  207.     AROS_LCA(long             , xMin, D2), \
  208.     AROS_LCA(long             , yMin, D3), \
  209.     AROS_LCA(long             , xMax, D4), \
  210.     AROS_LCA(long             , yMax, D5), \
  211.     struct GfxBase *, GfxBase, 66, Graphics)
  212.  
  213. AROS_LP4(void, SetABPenDrMd,
  214.     AROS_LPA(struct RastPort *, rp, A1),
  215.     AROS_LPA(ULONG            , apen, D0),
  216.     AROS_LPA(ULONG            , bpen, D1),
  217.     AROS_LPA(ULONG            , drawMode, D2),
  218.     struct GfxBase *, GfxBase, 149, Graphics)
  219. #define SetABPenDrMd(rp, apen, bpen, drawMode) \
  220.     AROS_LC4(void, SetABPenDrMd, \
  221.     AROS_LCA(struct RastPort *, rp, A1), \
  222.     AROS_LCA(ULONG            , apen, D0), \
  223.     AROS_LCA(ULONG            , bpen, D1), \
  224.     AROS_LCA(ULONG            , drawMode, D2), \
  225.     struct GfxBase *, GfxBase, 149, Graphics)
  226.  
  227. AROS_LP2(void, SetAPen,
  228.     AROS_LPA(struct RastPort *, rp, A1),
  229.     AROS_LPA(unsigned long    , pen, D0),
  230.     struct GfxBase *, GfxBase, 57, Graphics)
  231. #define SetAPen(rp, pen) \
  232.     AROS_LC2(void, SetAPen, \
  233.     AROS_LCA(struct RastPort *, rp, A1), \
  234.     AROS_LCA(unsigned long    , pen, D0), \
  235.     struct GfxBase *, GfxBase, 57, Graphics)
  236.  
  237. AROS_LP2(void, SetBPen,
  238.     AROS_LPA(struct RastPort *, rp, A1),
  239.     AROS_LPA(unsigned long    , pen, D0),
  240.     struct GfxBase *, GfxBase, 58, Graphics)
  241. #define SetBPen(rp, pen) \
  242.     AROS_LC2(void, SetBPen, \
  243.     AROS_LCA(struct RastPort *, rp, A1), \
  244.     AROS_LCA(unsigned long    , pen, D0), \
  245.     struct GfxBase *, GfxBase, 58, Graphics)
  246.  
  247. AROS_LP2(void, SetDrMd,
  248.     AROS_LPA(struct RastPort *, rp, A1),
  249.     AROS_LPA(unsigned long    , drawMode, D0),
  250.     struct GfxBase *, GfxBase, 59, Graphics)
  251. #define SetDrMd(rp, drawMode) \
  252.     AROS_LC2(void, SetDrMd, \
  253.     AROS_LCA(struct RastPort *, rp, A1), \
  254.     AROS_LCA(unsigned long    , drawMode, D0), \
  255.     struct GfxBase *, GfxBase, 59, Graphics)
  256.  
  257. AROS_LP2(void, SetFont,
  258.     AROS_LPA(struct RastPort *, rp, A1),
  259.     AROS_LPA(struct TextFont *, textFont, A0),
  260.     struct GfxBase *, GfxBase, 11, Graphics)
  261. #define SetFont(rp, textFont) \
  262.     AROS_LC2(void, SetFont, \
  263.     AROS_LCA(struct RastPort *, rp, A1), \
  264.     AROS_LCA(struct TextFont *, textFont, A0), \
  265.     struct GfxBase *, GfxBase, 11, Graphics)
  266.  
  267. AROS_LP2(ULONG, SetOutlinePen,
  268.     AROS_LPA(struct RastPort *, rp, A0),
  269.     AROS_LPA(ULONG,             pen, D0),
  270.     struct GfxBase *, GfxBase, 163, Graphics)
  271. #define SetOutlinePen(rp, pen) \
  272.     AROS_LC2(ULONG, SetOutlinePen, \
  273.     AROS_LCA(struct RastPort *, rp, A0), \
  274.     AROS_LCA(ULONG,             pen, D0), \
  275.     struct GfxBase *, GfxBase, 163, Graphics)
  276.  
  277. AROS_LP2(void, SetRast,
  278.     AROS_LPA(struct RastPort *, rp, A1),
  279.     AROS_LPA(unsigned long    , pen, D0),
  280.     struct GfxBase *, GfxBase, 39, Graphics)
  281. #define SetRast(rp, pen) \
  282.     AROS_LC2(void, SetRast, \
  283.     AROS_LCA(struct RastPort *, rp, A1), \
  284.     AROS_LCA(unsigned long    , pen, D0), \
  285.     struct GfxBase *, GfxBase, 39, Graphics)
  286.  
  287. AROS_LP3(void, Text,
  288.     AROS_LPA(struct RastPort *, rp, A1),
  289.     AROS_LPA(STRPTR           , string, A0),
  290.     AROS_LPA(unsigned long    , count, D0),
  291.     struct GfxBase *, GfxBase, 10, Graphics)
  292. #define Text(rp, string, count) \
  293.     AROS_LC3(void, Text, \
  294.     AROS_LCA(struct RastPort *, rp, A1), \
  295.     AROS_LCA(STRPTR           , string, A0), \
  296.     AROS_LCA(unsigned long    , count, D0), \
  297.     struct GfxBase *, GfxBase, 10, Graphics)
  298.  
  299. AROS_LP3(WORD, TextLength,
  300.     AROS_LPA(struct RastPort *, rp, A1),
  301.     AROS_LPA(STRPTR           , string, A0),
  302.     AROS_LPA(unsigned long    , count, D0),
  303.     struct GfxBase *, GfxBase, 9, Graphics)
  304. #define TextLength(rp, string, count) \
  305.     AROS_LC3(WORD, TextLength, \
  306.     AROS_LCA(struct RastPort *, rp, A1), \
  307.     AROS_LCA(STRPTR           , string, A0), \
  308.     AROS_LCA(unsigned long    , count, D0), \
  309.     struct GfxBase *, GfxBase, 9, Graphics)
  310.  
  311. AROS_LP3(LONG, WritePixel,
  312.     AROS_LPA(struct RastPort *, rp, A1),
  313.     AROS_LPA(long             , x, D0),
  314.     AROS_LPA(long             , y, D1),
  315.     struct GfxBase *, GfxBase, 54, Graphics)
  316. #define WritePixel(rp, x, y) \
  317.     AROS_LC3(LONG, WritePixel, \
  318.     AROS_LCA(struct RastPort *, rp, A1), \
  319.     AROS_LCA(long             , x, D0), \
  320.     AROS_LCA(long             , y, D1), \
  321.     struct GfxBase *, GfxBase, 54, Graphics)
  322.  
  323.  
  324. #endif /* CLIB_GRAPHICS_PROTOS_H */
  325.