Debian Codegraph @

docs/kxldrawpolygon.html

raw symbols SCIP
1 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=euc-jp">
5 <meta name="GENERATOR" content="emacs">
6 <meta name="Author" content="kacchan">
7 <title>KXL_DrawPolygon</title>
8 </head>
9 <body text="#000000" bgcolor="#f0f0dc" link="#3366FF" vlink="#3366FF" alink="#FF0000">
10
11 <a href="kxldrawrectangle.html">Prev</a>
12 <a href="KXL.html">Top</a>
13 <a href="kxlloadbitmap.html">Next</a>
14 <hr>
15
16 <b>Name</b><br><br>
17 <font size=+2>KXL_DrawPolygon</font><br><br>
18
19 <b>Synopsis</b><br>
20 <pre>KXL_DrawPolygon -- A polygon is drawn.
21 It clears by the color set up by <a
22 href="./kxlsetdrawcolor.html">KXL_SetDrawColor.</a>
23 </pre><br>
24
25 <b>Description</b><br>
26 <pre>void KXL_DrawPolygon(KXL_Polygon polygon, Uint16 max, Bool position, Bool fill);</pre><br>
27
28 <b>Arguments</b><br><br>
29 <table border="1">
30 <tr><td>polygon</td><td>Arrangement of a point.</td>
31 <tr><td>max</td><td>Number of points.</td>
32 <tr><td>position</td><td>True = Absolutely position.<br>
33 False = relative position from a front position.</td>
34 <tr><td>fill</td><td>True = The inside of a polygon is applied.<br>
35 False = The inside of a polygon is not applied.</td>
36 </table>
37 <br><br>
38
39 <b>Return Value</b><br><br>
40 Nothing.
41 <br><br><br>
42
43 <b>Exsample</b><br>
44 <pre>
45 #include &lt;KXL.h&gt;
46
47 int main(void)
48 {
49 Sint16 i;
50 <b>KXL_Polygon p[4] = {
51 {0, 0}, {20, 0}, {-10, 10}, {-10, -10}
52 };</b>
53
54 KXL_CreateWindow(100, 100, "sample", 0);
55 for (i = 0; i < 30; i ++) {
56 KXL_SetDrawColor(rand() % 0xff, rand() % 0xff, rand() % 0xff);
57 <b>p[0].x = rand() % 80;
58 p[0].y = rand() % 80;
59 KXL_DrawPolygon(p, 4, False, True);</b>
60 }
61 KXL_UpDateImm(0, 0, 100, 100);
62 getchar();
63 KXL_DeleteWindow();
64 return 0;
65 }
66 </pre>
67
68 </body>
69 </html>