al_build_transform(3)

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

okay so bestie, welcome to al_build_transform(3) from the Library Functions Manual β€” this is the Allegro 5 API page, and it's literally giving β€œbuild a transformation from raw float parameters” main character energy βœ¨πŸ’…

🌸 NAME 🌸

al_build_transform β€” Allegro 5 API. She builds transforms. That's the whole vibe.

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

void al_build_transform(ALLEGRO_TRANSFORM *trans, float x, float y,
   float sx, float sy, float theta)

πŸ’– DESCRIPTION πŸ’–

Builds a transformation given some parameters. This call is equivalent to calling the transformations in this order: make identity, rotate, scale, translate. This method is faster, however, than actually calling those functions. no cap, it's the shortcut πŸ’…

Parameters:

  • trans β€” Transformation to alter.
  • x, y β€” Translation.
  • sx, sy β€” Scale.
  • theta β€” Rotation angle in radians.
⚠️ Note: this function was previously documented to be equivalent to a different (and more useful) order of operations: identity, scale, rotate, translate. so if old docs had you confused, that was the old tea πŸ«–πŸ‘€

πŸ¦‹ SEE ALSO πŸ¦‹


πŸ’– that's the page, bestie! Footer tea: source/version is Allegro reference manual, and the date slot is not listed in the original footer β€” it just stamps al_build_transform(3) at the end like a little signature. byeee πŸ«ΆπŸŽ€

πŸ“¦ 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