1al_destroy_shader(3) al_destroy_shader(3)
2
3
4
6 al_destroy_shader - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 void al_destroy_shader(ALLEGRO_SHADER *shader)
12
14 Destroy a shader. Any bitmaps which currently use the shader will
15 implicitly stop using the shader. In multi-threaded programs, be care‐
16 ful that no such bitmaps are being accessed by other threads at the
17 time.
18
19 As a convenience, if the target bitmap of the calling thread is using
20 the shader then the shader is implicitly unused before being destroyed.
21
22 This function does nothing if the shader argument is NULL.
23
25 5.1.0
26
28 al_create_shader(3)
29
30
31
32Allegro reference manual al_destroy_shader(3)