AL_VERTICAL_SHEAR_TRANSFORM(3)
β¨ 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 toALLEGRO_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 π
al_horizontal_shear_transform(3)β the horizontal twin, for when you wanna shear the other way. matching set, honestly adorable, get both π
and that's the page!! short, sweet, and to the point β very demure, very mindful π§π
fr fr though: remember it's radians fortheta, andtransgets 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