al_scale_transform_3d(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– al_scale_transform_3d β€” the Allegro 5 glow-up ✨

okay bestie, sit down, hydrate, and let me tell you about a little function from the Allegro 5 API that makes your coordinates bigger or smaller and honestly? it's giving scale. πŸ¦‹


🌸 NAME 🌸

al_scale_transform_3d β€” as in, the Allegro 5 API. that's it, that's the name, no notes. πŸ’…


✨ SYNOPSIS ✨

first things first, you gotta let the girl in the door:

#include <allegro5/allegro.h>

and here's the whole entire signature, copy it exactly bestie, don't freestyle:

void al_scale_transform_3d(ALLEGRO_TRANSFORM *trans, float sx, float sy,
    float sz)

πŸŽ€ DESCRIPTION πŸŽ€

so what does she DO. okay so β€” al_scale_transform_3d takes the transformation you hand it and combines it with a transformation that scales coordinates by the given vector. that's the whole vibe. you pass in trans, you pass in sx, sy, and sz, and boom β€” your coordinates get scaled by that vector. 🫢

"combines" is doing a lot of heavy lifting here and no, I will not elaborate further, because the manpage did not elaborate further, and we respect the source. periodt. πŸ’œ


⭐ SINCE ⭐

this icon has been serving since 5.1.3 🌈 β€” yes, she's been here a while, she's a veteran, show some respect.


πŸ‘‘ SEE ALSO πŸ‘‘


🌸 lowkey a reminder: keep your args as float, keep your pointer as ALLEGRO_TRANSFORM *, and don't be weird about it.

and that's the tea, bestie πŸ“ this page came straight out of the Allegro reference manual β€” al_scale_transform_3d(3alleg5) β€” you're welcome, mwah πŸ’…βœ¨πŸ§š

πŸ“¦ where this page comes from