MATRIX_f(3alleg4)

πŸ’– MATRIX_f πŸ’–

okay bestie, welcome to the Allegro manual β€” yes, that Allegro, the game programming library, and yes, we're doing 3D math today. it's giving linear algebra but make it cute ✨


🌸 NAME 🌸

MATRIX_f β€” the floating point matrix structure, brought to you by the Allegro game programming library πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro.h>

typedef struct MATRIX_f

✨ DESCRIPTION ✨

so here's the tea, bestie πŸ“ β€” MATRIX_f is a floating point matrix structure, and inside it lives this:

  • float v[3][3]; β€” the 3x3 scaling and rotation component πŸ‘‘
  • float t[3]; β€” the x/y/z translation component πŸ¦‹

that's the whole vibe. and if you wanna know how to obtain or actually use this structure, go read the chapter "3D math routines" β€” it's literally right there waiting for you, no cap πŸ“–βœ¨

ngl, this struct is main character energy for anything 3D in Allegro. respect her πŸ’œ

πŸ‘€ SEE ALSO πŸ‘€

go read those too, they're iconic, i promise 🫢


okay that's the whole page, bestie!! this one's from Allegro version 4.4.3 β€” mwah, slay, periodt πŸ’…βœ¨πŸŽ€