al_set_shader_matrix(3)
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:
trueon success, periodt.falseotherwise, 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 π₯
al_use_shader(3)β go read this one too, bestie, iykyk π
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