al_use_shader(3)
π 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 π¦
al_destroy_shader(3)al_set_shader_sampler(3)al_set_shader_matrix(3)al_set_shader_int(3)al_set_shader_float(3)al_set_shader_bool(3)al_set_shader_int_vector(3)al_set_shader_float_vector(3)al_get_current_shader(3)
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