r4722@vps: verhaegs | 2007-05-06 13:11:19 -0400
[cake.git] / rom / graphics / polydraw.c
blob8c90e7e962e7d5061ca34d2341c642a47277cbf1
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
38 EXAMPLE
40 BUGS
42 SEE ALSO
44 INTERNALS
46 HISTORY
47 29-10-95 digulla automatically created from
48 graphics_lib.fd and clib/graphics_protos.h
50 *****************************************************************************/
52 AROS_LIBFUNC_INIT
54 LONG i;
55 WORD x, y;
57 for(i = 0; i < count; i++)
59 x = *polyTable++;
60 y = *polyTable++;
62 Draw(rp, x, y);
65 AROS_LIBFUNC_EXIT
67 } /* PolyDraw */