al_set_shader_float(3alleg5)

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

πŸ’– 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 πŸ¦‹


and that's a wrap from the Allegro reference manual, page al_set_shader_float(3alleg5) β€” periodt. πŸ’…βœ¨πŸ«Ά

πŸ“¦ where this page comes from