al_compose_transform(3)
πΈ NAME πΈ
okay so bestie, this is al_compose_transform(3) from the Library Functions Manual, and it's literally the Allegro 5 API function for composing (combining) two transformations by matrix multiplication π
β¨
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
void al_compose_transform(ALLEGRO_TRANSFORM *trans, const ALLEGRO_TRANSFORM *other)
π DESCRIPTION π
Bestie, the vibe is simple: you take two transformations and combine them with a matrix multiplication. The manual writes it exactly like this:
trans := trans other
Now pay attention, because this is the order tea β: the order of matrix multiplications is important. The effect of applying the combined transform will be as if you first apply trans and then apply other β and not the other way around. No cap, do not flip it ππ₯
π Parameters π
transβ transformation to alter π οΈotherβ transformation used to transformtransβ¨
π SEE ALSO π
that's the whole page, bestie π«Ά source/version is the Allegro reference manual, the page is al_compose_transform(3), and there's no date listed on the original footer β so no made-up date from me ππ
π¦ 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