ALLEGRO_TRANSFORM(3alleg5)

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

✨ 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