al_identity_transform(3alleg5)

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

✨ al_identity_transform ✨

okay bestie, welcome to the Allegro 5 API manual page for al_identity_transform β€” yes that's the whole NAME section, it's giving minimal and honestly? iconic πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

void al_identity_transform(ALLEGRO_TRANSFORM *trans)

πŸ’… DESCRIPTION πŸ’…

so this function sets the transformation to be the identity transformation. that's it. that's the whole job. no cap. 🫢

and here's the tea: that identity transformation is the default transformation. so if you've been messing with your transforms and you wanna go back to the way things were before you made it weird, you hit al_use_transform(3alleg5) on an identity transformation and boom, you're back to default. periodt. πŸ’–

ALLEGRO_TRANSFORM t;
al_identity_transform(&t);
al_use_transform(&t);

Parameters:

  • trans β€” the transformation you wanna alter. yes, the one you're pointing at. that one. ✨

🌈 SEE ALSO 🌈


and that's the whole page, bestie πŸ’œ this one came straight out of the <b>Allegro reference manual</b>, Allegro 5 era β€” shoutout to the source for keeping it short and sweet. no date on the original footer so i can't spill one, but the manual name is right there in the corner like a little name tag πŸŽ€ byeeee, go reset your transforms πŸ‘‘

πŸ“¦ where this page comes from