al_draw_polygon(3)
π al_draw_polygon(3) β Allegro 5 API π
okay bestie, this is the Library Functions Manual entry for al_draw_polygon in the Allegro 5 API, and itβs giving βoutline queenβ energy. π¦
πΈ NAME πΈ
al_draw_polygon β Allegro 5 API π
β¨ SYNOPSIS β¨
#include <allegro5/allegro_primitives.h>
void al_draw_polygon(const float *vertices, int vertex_count,
int join_style, ALLEGRO_COLOR color, float thickness, float miter_limit)
π DESCRIPTION π
Draw an unfilled polygon. fr fr, this is literally the same as passing ALLEGRO_LINE_CAP_CLOSED to al_draw_polyline(3). π«Ά
Hereβs the cast of arguments, bestie:
vertexβ interleaved array of(x, y)vertex coordinates. π«vertex_countβ number of vertices in the array. π’join_styleβ member ofALLEGRO_LINE_JOIN(3)specifying how to render the joins between line segments. πcolorβ color of the line. πthicknessβ thickness of the line, pass<= 0to draw hairline lines. βmiter_limitβ parameter for miter join style. π
lowkey important:vertexis the interleaved(x, y)array, andjoin_styleis a member ofALLEGRO_LINE_JOIN(3)β keep those exact, iykyk. π
π¦ SINCE π¦
5.1.0 β iconic since then. π
π SEE ALSO π
cute sign-off: from the Allegro reference manual for Allegro 5 API π Β· page: al_draw_polygon(3) Β· date: not printed on this page, so no fake date, bestie. π
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms