ALLEGRO_PRIM_TYPE(3alleg5)
β¨ ALLEGRO_PRIM_TYPE β¨
okay so bestie, welcome to the Allegro 5 API manual, page ALLEGRO_PRIM_TYPE(3alleg5) π this one is short and sweet and it's literally just a lil enum glossary, but you're gonna want it memorized, fr fr.
πΈ NAME πΈ
ALLEGRO_PRIM_TYPE β the Allegro 5 API's very own "what shape am I even drawing" enum π
π SYNOPSIS π
#include <allegro5/allegro_primitives.h>
typedef enum ALLEGRO_PRIM_TYPE
π¦ DESCRIPTION π¦
This enum is basically the menu of primitive types this addon can draw π it enumerates all the kinds of primitives the addon is capable of rendering, and here's the full rundown, no skips, no cuts:
ALLEGRO_PRIM_POINT_LISTβ a list of points, and every single vertex defines a point β¨ like, one vertex = one point, that's the whole vibe.ALLEGRO_PRIM_LINE_LISTβ a list of lines! sequential pairs of vertices define disjointed lines π so vertex 1 & 2 make a line, 3 & 4 make a line, and none of them are connected to each other. independent queens.ALLEGRO_PRIM_LINE_STRIPβ a strip of lines, where sequential vertices define a strip of lines π§ it's giving "connect the dots" energy, one continuous lil trail.ALLEGRO_PRIM_LINE_LOOPβ like a line strip, except at the end the first and the last vertices are also connected by a line π« so it closes itself up. a full circle moment, literally.ALLEGRO_PRIM_TRIANGLE_LISTβ a list of triangles, sequential triplets of vertices define disjointed triangles πΊ three at a time, no sharing, no overlap, each triangle doing its own thing.ALLEGRO_PRIM_TRIANGLE_STRIPβ a strip of triangles, sequential vertices define a strip of triangles β they chain together and share edges, super efficient, main character energy.ALLEGRO_PRIM_TRIANGLE_FANβ a fan of triangles, where all triangles share the first vertex πΈ every single triangle is anchored to vertex numero uno. it's a fan, bestie, and it's serving.
real talk: these are just the types β this enum tells you (and the addon) how to interpret a big pile of vertices. don't go inventing values, iykyk π
that's the whole page, bestie, you ate that π«Ά
ALLEGRO_PRIM_TYPE(3alleg5) β from the Allegro reference manual, version 3alleg5. mwah, go draw something iconic π
β¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms