al_set_shader_bool(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’… al_set_shader_bool(3) πŸ’…

okay so this page is from the Library Functions Manual, bestie β€” it's al_set_shader_bool(3), and the whole thing is the Allegro 5 API. Let's go, because this one is lowkey iconic. ✨


🌸 NAME 🌸

al_set_shader_bool β€” Allegro 5 API. literally the name, the legend, the main character. πŸ‘‘

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_set_shader_bool(const char *name, bool b)

πŸŽ€ DESCRIPTION πŸŽ€

okay so what it does: sets a boolean uniform of the target bitmap’s shader. that's the whole assignment, no cap. πŸ’…

It returns true on success. Otherwise it returns false, e.g. if the uniform by that name does not exist in the shader. so if the shader is giving β€œnever heard of her,” you get false β€” check that uniform name, bestie. 🫢

πŸ’œ SINCE πŸ’œ

5.1.6 β€” it's been around since then, periodt. πŸ¦‹

πŸ”₯ SEE ALSO πŸ”₯


that's the whole page, bestie β€” source: Allegro reference manual Β· footer page name: al_set_shader_bool(3) Β· date/version: not separately listed in the footer. πŸ’–

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms