get_scaling_matrix(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

πŸ’– 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