al_set_shader_matrix(3alleg5)
π al_set_shader_matrix(3alleg5) π
okay bestie, welcome to the Allegro 5 API corner of the manual where we make shaders do the thing. no cap, this one is short but lowkey iconic.
β¨ 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 π
so basically, this function sets a matrix uniform of the current target bitmap's shader. like, you're sliding a whole transformation matrix into the shader's uniform slot and it's giving main character energy. β¨
it returns true on success. but if things don't go your way, it returns false β for example, if the uniform by that name does not exist in the shader. π not the shader ghosting your uniform name, but okay.
π SINCE π
5.1.0 β periodt, this has been around for a minute. π
π SEE ALSO π
al_use_shader(3alleg5)β go check your bestie for all your shader-binding needs π«Ά
and that's the whole vibe, bestie. Allegro reference manual β al_set_shader_matrix(3alleg5). stay slaying those uniforms. π
β¨π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms