1al_draw_polygon(3) al_draw_polygon(3)
2
3
4
6 al_draw_polygon - Allegro 5 API
7
9 #include <allegro5/allegro_primitives.h>
10
11 void al_draw_polygon(const float *vertices, int vertex_count,
12 int join_style, ALLEGRO_COLOR color, float thickness, float miter_limit)
13
15 Draw an unfilled polygon. This is the same as passing ALLE‐
16 GRO_LINE_CAP_CLOSED to al_draw_polyline(3).
17
18 • vertex - Interleaved array of (x, y) vertex coordinates
19
20 • vertex_count - Number of vertices in the array
21
22 • join_style - Member of ALLEGRO_LINE_JOIN(3) specifying how to render
23 the joins between line segments
24
25 • color - Color of the line
26
27 • thickness - Thickness of the line, pass <= 0 to draw hairline lines
28
29 • miter_limit - Parameter for miter join style
30
32 5.1.0
33
35 al_draw_filled_polygon(3), al_draw_polyline(3), ALLEGRO_LINE_JOIN(3)
36
37
38
39Allegro reference manual al_draw_polygon(3)