al_set_shader_bool(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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