ALLEGRO_PRIM_TYPE(3)
β¨ 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