al_set_shader_matrix(3)

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

Hey bestie πŸ’– welcome to al_set_shader_matrix(3), straight out of the Library Functions Manual β€” she’s here to set a matrix uniform and she’s gonna do it cutely.


πŸŽ€ NAME πŸŽ€

al_set_shader_matrix - Allegro 5 API ✨


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

bool al_set_shader_matrix(const char *name,
   const ALLEGRO_TRANSFORM *matrix)

πŸ’… DESCRIPTION πŸ’…

Okay so: this function sets a matrix uniform of the current target bitmap’s shader. That’s the whole vibe, no cap.

Return check, bestie:

  • true on success, periodt.
  • false otherwise, e.g. if the uniform by that name does not exist in the shader. That’s literally the example the page gives, so don’t come for me 😭
If the uniform by that name does not exist in the shader, that’s one of the false cases β€” the page said it, not me 🫢

πŸ¦‹ SINCE πŸ¦‹

5.1.0 β€” the era, the moment, the icon πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯


Signed off by the Allegro reference manual 🫢 β€” and no, the footer isn’t giving us a date, so we’re just gonna call it timeless πŸ’€βœ¨

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