al_set_shader_float(3alleg5)
π NAME π
okay so bestie, meet al_set_shader_float β she's part of the Allegro 5 API (filed under the alleg5 manual, iykyk). Her whole vibe? Setting a float uniform, and she is literally the moment.
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
bool al_set_shader_float(const char *name, float f)
π DESCRIPTION π
So what does she do? She sets a float uniform of the target bitmapβs shader. That's it, that's the whole assignment. π
She returns true on success. But if things go sideways? She returns false, like when the uniform with that name does not exist in the shader. Not me getting a false and having to double-check my uniform names π.
πΈ SINCE πΈ
5.1.0 β she's been iconic since then, fr fr.
π¦ SEE ALSO π¦
al_use_shader(3alleg5)β go give her a read, bestie.
and that's a wrap from the Allegro reference manual, page al_set_shader_float(3alleg5) β periodt. π
β¨π«Ά
π¦ 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