al_get_curren...rse_transform(3alleg5)

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

hey bestie! welcome to the Allegro 5 API manual, page al_get_curren...rse_transform(3alleg5) πŸ’– okay so let's get into it.

✨ NAME ✨

al_get_current_inverse_transform β€” Allegro 5 API

🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

const ALLEGRO_TRANSFORM *al_get_current_inverse_transform(void)

πŸ’– DESCRIPTION πŸ’–

So like, this function returns the inverse of the current transformation of the target bitmap. That's the whole vibe.

If there is no target bitmap? Boom, it returns NULL. No target, no transform, no cap.

It's similar to calling al_invert_transform(al_get_current_transform()) but the result of this function is cached β€” so it's giving "I already did the math, you're welcome" energy. Slay.

Note: Allegro’s transformation inversion functions work correctly only with 2D transformations. So if you're trying to do 3D, it's lowkey not gonna work. Periodt.

πŸŽ€ SINCE πŸŽ€

5.1.0 β€” this has been iconic since then, fr fr.


sourced from the Allegro reference manual, page al_get_curren...rse_transform(3alleg5). No date on this one, just pure Allegro energy. πŸ’…βœ¨

πŸ“¦ where this page comes from