al_get_current_shader(3alleg5)

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

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