al_get_current_shader(3alleg5)
π al_get_current_shader β Allegro 5 API π
okay bestie, welcome to the al_get_current_shader(3alleg5) page from the Allegro reference manual, we're gonna have a lil moment together β¨
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
ALLEGRO_SHADER *al_get_current_shader()
π DESCRIPTION π
so basically this function hands you the shader that's attached to your target bitmap, and if literally nothing's shader-ing right now, you get NULL back. that's it. that's the whole vibe check π¦
β SINCE β
5.2.9 β she's been here since 5.2.9, iconic behavior, no cap π
π«Ά SEE ALSO π«Ά
al_use_shader(3alleg5)β the bestie you go to when you actually wanna set the shader instead of just peeking at it π
lowkey reminder: NULL means "nobody's home", not "error", so don't spiral about it π
and that's the page, fr fr β Allegro reference manual, al_get_current_shader(3alleg5), dating back to the 5.2.9 era π go slay your shaders bestie, ily, bye πβ¨
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms