al_draw_filled_polygon man page
al_draw_filled_polygon — Allegro 5 API
#include <allegro5/allegro_primitives.h> void al_draw_filled_polygon(const float *vertices, int vertex_count, ALLEGRO_COLOR color)
Draw a filled, simple polygon. Simple means it does not have to be convex but must not be self-overlapping.
- vertices - Interleaved array of (x, y) vertex coordinates
- vertex_count - Number of vertices in the array
- color - Color of the filled polygon
When the y-axis is facing downwards (the usual), the coordinates must be ordered anti-clockwise.