al_set_shader_bool(3alleg5)
β¨ al_set_shader_bool β¨
okay bestie, welcome to the Allegro 5 API reference manual, page al_set_shader_bool(3alleg5) π this one's short and sweet and honestly? iconic.
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
bool al_set_shader_bool(const char *name, bool b)
π DESCRIPTION π
So basically you're setting a boolean uniform on the shader that belongs to the target bitmap. that's it. that's the whole job. π
It returns true when it works, obviously, we love a success story. But if it returns false? girl, that means something went wrong β like, for example, if there's no uniform in that shader with the name you passed in. the uniform by that name does not exist. the audacity, honestly. π
ngl, always check the return value. your shader will not warn you, it'll just quietly not care, and you'll be debugging at 3am wondering why your vibes are off. π
π¦ SINCE π¦
5.1.6 β she's been around a minute, she's a real one. β¨
π«Ά SEE ALSO π«Ά
al_use_shader(3alleg5)β your bestie that actually puts the shader in play, go read that one next π
and that's the page, no cap. this was the Allegro reference manual, al_set_shader_bool(3alleg5), same energy as the header at the top because of course it is. now go set some bools, you main character. ππ
π¦ 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