ALLEGRO_PRIM_TYPE(3)

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

✨ NAME ✨

ALLEGRO_PRIM_TYPE β€” Allegro 5 API. Bestie, this page is coming at you from the Library Functions Manual, and it’s literally the enum that lists the primitive types this addon can draw πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_primitives.h>

typedef enum ALLEGRO_PRIM_TYPE

πŸ’… DESCRIPTION πŸ’…

Okay so this enum is the whole menu of primitive types this addon can draw. The vibe check is very much β€œwhat shape are we giving today?” ✨

  • ALLEGRO_PRIM_POINT_LIST β€” a list of points, where each vertex defines a point. Tiny dot main character energy 🫢
  • ALLEGRO_PRIM_LINE_LIST β€” a list of lines: sequential pairs of vertices define disjointed lines. No cap, they’re separate lines πŸ’«
  • ALLEGRO_PRIM_LINE_STRIP β€” a strip of lines, where sequential vertices define a strip of lines. The chain keeps going πŸ”₯
  • ALLEGRO_PRIM_LINE_LOOP β€” like a line strip, except at the end the first and the last vertices are also connected by a line. Iconic little closure moment πŸ‘‘
  • ALLEGRO_PRIM_TRIANGLE_LIST β€” a list of triangles: sequential triplets of vertices define disjointed triangles. Triplets ate πŸ’…
  • ALLEGRO_PRIM_TRIANGLE_STRIP β€” a strip of triangles, where sequential vertices define a strip of triangles. Strip supremacy 🌈
  • ALLEGRO_PRIM_TRIANGLE_FAN β€” a fan of triangles, and all triangles share the first vertex. Literally all of them 😭

okay that’s the tea β˜• β€” signing off from the Allegro reference manual, page ALLEGRO_PRIM_TYPE(3) πŸ’–βœ¨πŸ¦‹

πŸ“¦ 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