1al_use_shader(3)                                              al_use_shader(3)
2
3
4

NAME

6       al_use_shader - Allegro 5 API
7

SYNOPSIS

9              #include <allegro5/allegro.h>
10
11              bool al_use_shader(ALLEGRO_SHADER *shader)
12

DESCRIPTION

14       Uses the shader for subsequent drawing operations on the current target
15       bitmap.  Pass NULL to stop using any shader on the current target  bit‐
16       map.
17
18       Returns  true  on  success.  Otherwise returns false, e.g.  because the
19       shader is incompatible with the target bitmap.
20

SINCE

22       5.1.6
23

SEE ALSO

25       al_destroy_shader(3),                         al_set_shader_sampler(3),
26       al_set_shader_matrix(3),  al_set_shader_int(3), al_set_shader_float(3),
27       al_set_shader_bool(3),                     al_set_shader_int_vector(3),
28       al_set_shader_float_vector(3)
29
30
31
32Allegro reference manual                                      al_use_shader(3)
Impressum