AL_VERTICAL_SHEAR_TRANSFORM(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

✨ al_vertical_shear_transform(3) ✨

okay so bestie, welcome to the Allegro 5 API reference manual, specifically the page for al_vertical_shear_transform β€” a function with a name so long it got its own vibe check. it's a Library Functions Manual situation, and we're about to make a transform go all slanted and cute πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

like, here's the whole thing, no cap:

#include <allegro5/allegro.h>

void al_vertical_shear_transform(ALLEGRO_TRANSFORM* trans, float theta)

that's it. that's the whole call. void return, so nothing comes back to you β€” it just does the thing and dips πŸ¦‹


🌸 DESCRIPTION 🌸

so what does it actually do?? it applies a vertical shear to the transform. that's the whole sentence, and honestly? iconic brevity.

like, imagine your transform is a nice rectangle and you just tilt it vertically β€” that's the shear energy. main character transformation arc, literally πŸ”₯

here are the Parameters you gotta feed it:

  • trans β€” the transformation you want to alter. this is the victim, the one getting sheared. it's a pointer to ALLEGRO_TRANSFORM, so it gets changed in place β€” yes bestie, it mutates, that's the whole point 🫢
  • theta β€” the rotation angle, and it is measured in radians (not degrees!! radians!! don't come at me with degrees or the math will be off 😭). this decides how much shear you're getting.

πŸ¦‹ SINCE πŸ¦‹

5.1.7 β€” so this one's been around a hot minute, vintage but still slaying ✨


πŸ’– SEE ALSO πŸ’–


and that's the page!! short, sweet, and to the point β€” very demure, very mindful πŸ§šπŸ’œ

fr fr though: remember it's radians for theta, and trans gets altered in place. no return value, no copy, no drama. periodt.

this has been the Allegro reference manual β€” the source/version line and date got folded into this cute lil sign-off instead of a boring footer, you're welcome bestie πŸ’…πŸŽ€

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms