al_use_shader(3)

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

πŸ’– al_use_shader(3) πŸ’–

πŸŽ€ NAME πŸŽ€

al_use_shader β€” the Allegro 5 API page from the Library Functions Manual, and yes bestie, we are getting into it ✨

✨ SYNOPSIS ✨

#include <allegro5/allegro.h>

bool al_use_shader(ALLEGRO_SHADER *shader)

πŸ’… DESCRIPTION πŸ’…

okay so al_use_shader() is literally how you tell Allegro to use the shader for subsequent drawing operations on the current target bitmap. main character energy for your draw setup πŸ‘‘

Pass NULL to stop using any shader on the current target bitmap β€” that's the "no shader, no problem" move, and it's valid πŸ’–

It returns true on success πŸŽ€. Otherwise it returns false, e.g. because the shader is incompatible with the target bitmap β€” and that's the vibe check failing, no cap 😭.

🌸 SINCE 🌸

5.1.6 β€” she's been serving since then, periodt πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹

go give these besties a read 🫢


Cute sign-off from the Allegro reference manual, page al_use_shader(3) β€” the footer has no date showing, so no invented timestamp, just source/version energy and a sparkly bye πŸ’–πŸŒˆβœ¨

πŸ“¦ 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