al_use_shader(3alleg5)

al_use_shader3alleg5

Allegro 5 api

Usage

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

Overview

Uses the shader for subsequent drawing operations on the current target bitmap. Pass NULL to stop using any shader on the current target bitmap.

Returns true on success. Otherwise returns false, e.g. because the shader is incompatible with the target bitmap.

Since

5.1.6

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

From allegro5-doc 2:5.2.10.1+dfsg-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.