logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

al_draw_filled_polygon - Allegro 5 API

Description

       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.

Name

       al_draw_filled_polygon - Allegro 5 API

See Also

al_draw_polygon(3alleg5), al_draw_filled_polygon_with_holes(3alleg5)

Allegro reference manual                                                         al_draw_filled_polygon(3alleg5)

Since

       5.1.0

Synopsis

              #include <allegro5/allegro_primitives.h>

              void al_draw_filled_polygon(const float *vertices, int vertex_count,
                 ALLEGRO_COLOR color)

See Also