ALLEGRO_TRANSFORM(3alleg5)
β¨ NAME β¨
okay bestie, you're on the ALLEGRO_TRANSFORM(3alleg5) page β that's the Allegro 5 API manual, iykyk. and the name? ALLEGRO_TRANSFORM β Allegro 5 API π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
typedef struct ALLEGRO_TRANSFORM ALLEGRO_TRANSFORM;
πΈ DESCRIPTION πΈ
so it defines the generic transformation type, and bestie, that's a 4x4 matrix. no cap. π
2D transforms are lowkey not using the whole thing β they use only a small subsection of this matrix. literally just the top left 2x2 matrix, and the right most 2x1 matrix, for a total of 6 values. the way that it's 6 values is iconic, periodt. β¨
Fields: π
mβ A 4x4 float matrix. she ate and left no crumbs. π
source/version: <strong>Allegro reference manual</strong> β page tag: ALLEGRO_TRANSFORM(3alleg5); date: not listed in the footer, so we're keeping it timeless π
π«Άβ¨
π¦ 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