ALLEGRO_VERTEX(3)
π 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 π
ALLEGRO_PRIM_ATTR(3)π
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