.\" Automatically generated by Pandoc 3.1.3 .\" .\" Define V font for inline verbatim, using C font in formats .\" that render this, and otherwise B font. .ie "\f[CB]x\f[]"x" \{\ . ftr V B . ftr VI BI . ftr VB B . ftr VBI BI .\} .el \{\ . ftr V CR . ftr VI CI . ftr VB CB . ftr VBI CBI .\} .TH "al_use_shader" "3alleg5" "" "Allegro reference manual" "" .hy .SH NAME .PP al_use_shader - Allegro 5 API .SH SYNOPSIS .IP .nf \f[C] #include bool al_use_shader(ALLEGRO_SHADER *shader) \f[R] .fi .SH DESCRIPTION .PP Uses the shader for subsequent drawing operations on the current target bitmap. Pass NULL to stop using any shader on the current target bitmap. .PP Returns true on success. Otherwise returns false, e.g.\ because the shader is incompatible with the target bitmap. .SH SINCE .PP 5.1.6 .SH SEE ALSO .PP al_destroy_shader(3alleg5), al_set_shader_sampler(3alleg5), al_set_shader_matrix(3alleg5), al_set_shader_int(3alleg5), al_set_shader_float(3alleg5), al_set_shader_bool(3alleg5), al_set_shader_int_vector(3alleg5), al_set_shader_float_vector(3alleg5), al_get_current_shader(3alleg5)