ALLEGRO_LINE_JOIN(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ALLEGRO_LINE_JOIN ✨

okay bestie, welcome to the Allegro 5 API corner of the manual πŸ’– this one's a lil enum page, it's short, it's cute, and it's literally just about how your lines behave when they meet at a corner πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_primitives.h>

typedef enum ALLEGRO_LINE_JOIN

πŸ¦‹ DESCRIPTION πŸ¦‹

so. ALLEGRO_LINE_JOIN is an enum, and it's the whole vibe check for what happens at the joint when two line segments link up πŸ‘‘ here's every single one of the options, no cap, none skipped:

  • ALLEGRO_LINE_JOIN_NONE
  • ALLEGRO_LINE_JOIN_BEVEL
  • ALLEGRO_LINE_JOIN_ROUND
  • ALLEGRO_LINE_JOIN_MITER
πŸ–ΌοΈ [IMAGE: ALLEGRO_LINE_JOIN styles] β€” the caption literally reads ALLEGRO_LINE_JOIN styles

See the picture for the difference. like, genuinely, the visual is right there and it explains it way faster than words ever could πŸ“Έβœ¨

and here's the juicy bit, the part that's giving main character energy: the maximum miter length β€” which is measured relative to the line width β€” can be specified as a parameter to the polygon functions πŸ’… that's your knob to turn, iykyk.


πŸ’œ SINCE πŸ’œ

5.1.0 β€” yeah she's been around since then, an icon, a legend 🫢


🌈 SEE ALSO 🌈


okay that's the whole page, you ate it, go draw some polygons with impeccable corners πŸ’…βœ¨ mwah πŸ’–

signing off from the Allegro reference manual, this was page ALLEGRO_LINE_JOIN(3alleg5) πŸŽ€πŸŒ·πŸ’œ

πŸ“¦ where this page comes from