get_scaling_matrix(3)
π get_scaling_matrix(3) π
okay bestie, so this is a page from the Allegro manual β the Allegro game programming library, to be exact β and we're talking about two little functions that make stuff bigger or smaller. main character energy, fr fr β¨
πΈ NAME πΈ
get_scaling_matrix, get_scaling_matrix_f β they construct a scaling matrix π
(and yeah, this whole thing lives in the Allegro game programming library, in case you were wondering π)
β¨ SYNOPSIS β¨
okay so first you gotta pull in the header, like always:
#include <allegro.h>
then, the two icons themselves:
void get_scaling_matrix(MATRIX *m, fixed x, fixed y, fixed z);
void get_scaling_matrix_f(MATRIX_f *m, float x, float y, float z);
one takes a MATRIX with fixed numbers, the other takes a MATRIX_f with float numbers. pick your fighter π«Ά
π¦ DESCRIPTION π¦
So what does it actually do? It constructs a scaling matrix and tucks it right into m. That's it. That's the whole job. π
And then β the glow-up moment β when you apply this matrix to the point (px, py, pz), the matrix produces the point (px*x, py*y, pz*z). β¨
In other words, it stretches or shrinks things. big x means big stretch, tiny x means itty bitty. it's giving glow up or shrink era, depending on your numbers. ππ
π SEE ALSO π
Go read these next, they're all lowkey iconic and they all ate:
quick vibe check bestie: this is straight from the Allegro manual, version 4.4.3, and the page is literally called get_scaling_matrix(3). no cap. now go scale something gorgeous π
π¦ 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