get_scaling_matrix(3alleg4)
π get_scaling_matrix β bestie edition π
okay so this is a page from the Allegro manual, and it's about making your stuff get bigger or smaller β¨ literally the glow-up function.
πΈ NAME πΈ
get_scaling_matrix, get_scaling_matrix_f β they construct a scaling matrix, no cap. Part of the Allegro game programming library π
β¨ SYNOPSIS β¨
#include <allegro.h>
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);
π¦ DESCRIPTION π¦
So basically, this function builds a scaling matrix and tucks it all cozy into m. π«Ά
When you apply it to a point (px, py, pz), the matrix hands you back the point (px*x, py*y, pz*z). In other words β and I need you to hear me on this β it stretches or shrinks things π
That's it. That's the whole vibe. Scale = stretch or shrink. Slay.
π SEE ALSO π
k bye bestie, go scale something iconic πβ¨
this was Allegro, version 4.4.3, and the page itself is get_scaling_matrix(3alleg4) β mwah, drink water, stan a matrix ππ
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms