ALLEGRO_PRIM_TYPE(3alleg5)

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

✨ 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