al_destroy_shader(3)
al_destroy_shader(3) π
okay so this page is from the Library Functions Manual, and itβs giving βAllegro 5 API cleanup eraβ β¨ β literally the shader destroyer, no cap.
π NAME
al_destroy_shaderβ Allegro 5 API
π§Ύ SYNOPSIS
#include <allegro5/allegro.h>
void al_destroy_shader(ALLEGRO_SHADER *shader)
π DESCRIPTION
Destroy a shader. Bestie, any bitmaps which currently use the shader will implicitly stop using the shader. π«Ά
In multi-threaded programs, be careful that no such bitmaps are being accessed by other threads at the time. fr fr, pay attention to that part π
As a convenience, if the target bitmap of the calling thread is using the shader then the shader is implicitly unused before being destroyed. iconic behavior, honestly π
This function does nothing if the shader argument is NULL. so if itβs NULL, itβs literally doing nothing β no drama, no crash, just vibes πΈ
β° SINCE
5.1.0 β itβs been around, periodt π
π SEE ALSO
al_create_shader(3)β the other shader page, bestie π¦
mwah π this page comes from the Allegro reference manual; the footer just says Allegro reference manual and al_destroy_shader(3), and thereβs no date listed, so thatβs the whole sign-off vibe πβ¨
π¦ 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