ALLEGRO_VERTEX(3)

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

πŸ’… ALLEGRO_VERTEX(3) β€” from the Library Functions Manual, Allegro 5 API ✨

okay bestie, welcome to the ALLEGRO_VERTEX(3) page πŸ¦‹ this one is part of the Allegro 5 API, and it’s literally all about the generic vertex type. No cap.

πŸ’– NAME πŸŽ€

ALLEGRO_VERTEX β€” Allegro 5 API ✨

🌸 SYNOPSIS 🌸

#include <allegro5/allegro_primitives.h>

typedef struct ALLEGRO_VERTEX ALLEGRO_VERTEX;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this struct is the generic vertex type, and it’s giving 3D position, color, and texture coordinates for a single texture, all in one little package πŸ’….

🚨 Important tea, bestie: at this time, the software driver for this addon cannot render 3D primitives. Like, it’s just not happening with that driver right now.

If you want a 2D only primitive, set z to 0 πŸŽ€.

⚠️ And listen: you must initialize all members of this struct when you’re using it. That’s the rule.

One exception to this rule are the u and v variables, which can be left uninitialized when you are not using textures ✨.

πŸ“ Fields πŸ“

  • x, y, z β€” Position of the vertex (float) πŸ“
  • u, v β€” Texture coordinates measured in pixels (float) 🧡
  • color β€” ALLEGRO_COLOR(3) structure, storing the color of the vertex 🎨

πŸ‘‘ SEE ALSO πŸ‘‘


xoxo πŸ’– from the Allegro reference manual, page ALLEGRO_VERTEX(3) β€” date not listed on this page, and that’s the tea 🫢

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