2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
5 Desc: Graphics function AreaDraw()
8 #include <exec/types.h>
9 #include <graphics/rastport.h>
10 #include "graphics_intern.h"
11 #include "gfxfuncsupport.h"
13 /*****************************************************************************
16 #include <proto/graphics.h>
18 AROS_LH3(ULONG
, AreaDraw
,
21 AROS_LHA(struct RastPort
*, rp
, A1
),
22 AROS_LHA(WORD
, x
, D0
),
23 AROS_LHA(WORD
, y
, D1
),
26 struct GfxBase
*, GfxBase
, 43, Graphics
)
29 Add a point to the vector buffer.
32 rp - pointer to a valid RastPort structure with a pointer to
33 the previously initialized AreaInfo structure.
34 x - x-coordinate of the point in the raster
35 y - y-coordinate of the point in the raster
39 -1 if the vector collection matrix is full
48 InitArea(), AreaMove(), AreaEllipse(), AreaCircle()
55 *****************************************************************************/
59 struct AreaInfo
* areainfo
= rp
->AreaInfo
;
61 /* Is there still enough storage area in the areainfo-buffer?
62 * We only need on vector to store here.
65 if (areainfo
->Count
+ 1 <= areainfo
->MaxCount
)
70 /* increment counter */
73 areainfo
->VctrPtr
[0] = x
;
74 areainfo
->VctrPtr
[1] = y
;
75 areainfo
->FlagPtr
[0] = AREAINFOFLAG_DRAW
;
77 areainfo
->VctrPtr
= &areainfo
->VctrPtr
[2];