1al_build_shader(3) al_build_shader(3)
2
3
4
6 al_build_shader - Allegro 5 API
7
9 #include <allegro5/allegro.h>
10
11 bool al_build_shader(ALLEGRO_SHADER *shader)
12
14 This is required before the shader can be used with al_use_shader(3).
15 It should be called after successfully attaching the pixel and/or ver‐
16 tex shaders with al_attach_shader_source(3) or al_attach_shad‐
17 er_source_file(3).
18
19 Returns true on success and false on error, in which case the error log
20 is updated. The error log can be retrieved with al_get_shader_log(3).
21
22 Note: If you are using the ALLEGRO_PROGRAMMABLE_PIPELINE flag,
23 then you must specify both a pixel and a vertex shader sources
24 for anything to be rendered.
25
27 5.1.6
28
30 al_use_shader(3), al_get_shader_log(3)
31
32
33
34Allegro reference manual al_build_shader(3)