al_draw_polygon(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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 of ALLEGRO_LINE_JOIN(3) specifying how to render the joins between line segments. πŸ’…
  • color β€” color of the line. 🌈
  • thickness β€” thickness of the line, pass <= 0 to draw hairline lines. ⭐
  • miter_limit β€” parameter for miter join style. πŸŽ€
lowkey important: vertex is the interleaved (x, y) array, and join_style is a member of ALLEGRO_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