Minor fixes to comments.
[AROS.git] / rom / graphics / polydraw.c
blobec0af3c2da69a4a78ec14c83ac4c959b62b0d954
1 /*
2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
3 $Id$ $Log
5 Desc: Graphics function PolyDraw()
6 Lang: english
7 */
8 #include "graphics_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/graphics.h>
15 AROS_LH3(void, PolyDraw,
17 /* SYNOPSIS */
18 AROS_LHA(struct RastPort *, rp, A1),
19 AROS_LHA(LONG , count, D0),
20 AROS_LHA(WORD *, polyTable, A0),
22 /* LOCATION */
23 struct GfxBase *, GfxBase, 56, Graphics)
25 /* FUNCTION
26 Draw connected lines from an array. The first line is drawn
27 from the current pen position to the first entry in the array.
29 INPUTS
30 rp - RastPort
31 count - number of x,y pairs
32 polyTable - array of x,y pairs
34 RESULT
36 NOTES
37 Official prototype files declare count as LONG but
38 original ROM code only uses low 16-bits.
40 EXAMPLE
42 BUGS
44 SEE ALSO
46 INTERNALS
48 HISTORY
49 29-10-95 digulla automatically created from
50 graphics_lib.fd and clib/graphics_protos.h
52 *****************************************************************************/
54 AROS_LIBFUNC_INIT
56 UWORD i, cnt;
57 WORD x, y;
59 cnt = (UWORD)count; /* see NOTES */
60 for(i = 0; i < cnt; i++)
62 x = *polyTable++;
63 y = *polyTable++;
65 Draw(rp, x, y);
68 AROS_LIBFUNC_EXIT
70 } /* PolyDraw */