apply_matrix(3)
β¨ apply_matrix(3) β¨
okay bestie, we're doing an Allegro manual page today, and it's a short one but it's so useful. sit down, grab a strawberry, let's go π
π NAME π
apply_matrix, apply_matrix_f β literally multiplies a point by a transformation matrix. that's the whole vibe. also: it lives in the Allegro game programming library, so it's giving game-dev main character energy π
πΈ SYNOPSIS πΈ
#include <allegro.h>
void apply_matrix(const MATRIX *m, fixed x, y, z, *xout, *yout, *zout);
void apply_matrix_f(const MATRIX_f *m, float x, y, z, *xout, *yout,
*zout);
yes the two functions are twins, no cap. one is the fixed girlie, one is the float girlie π
π¦ DESCRIPTION π¦
so here's the tea: you've got a point (x, y, z) and you've got a transformation matrix m. this function takes that point, multiplies it by that matrix, and drops the result into (*xout, *yout, *zout).
that's it. that's the function. it ate and left no crumbs β¨
like β you hand it the point, it hands you back where the point ends up after the transformation. the way that works is genuinely so satisfying ngl π«Ά
π SEE ALSO π
go read those if you want the full lore, iykyk π
reminder bestie: this page is from Allegro version 4.4.3 π that's the source and the version, noted and slayed. mwah, bye! ππβ
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms