1al_draw_filled_polygon(3)                            al_draw_filled_polygon(3)
2
3
4

NAME

6       al_draw_filled_polygon - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro_primitives.h>
10
11              void al_draw_filled_polygon(const float *vertices, int vertex_count,
12                 ALLEGRO_COLOR color)
13

DESCRIPTION

15       Draw  a  filled,  simple  polygon.  Simple means it does not have to be
16       convex but must not be self-overlapping.
17
18       · vertices - Interleaved array of (x, y) vertex coordinates
19
20       · vertex_count - Number of vertices in the array
21
22       · color - Color of the filled polygon
23
24       When the y-axis is facing downwards (the usual), the  coordinates  must
25       be ordered anti-clockwise.
26

SINCE

28       5.1.0
29

SEE ALSO

31       al_draw_polygon(3), al_draw_filled_polygon_with_holes(3)
32
33
34
35Allegro reference manual                             al_draw_filled_polygon(3)
Impressum