al_attach_shader_source_file(3)

al_attach_shader_source_file3

Allegro 5 api

Usage

#include <allegro5/allegro.h>
bool al_attach_shader_source_file(ALLEGRO_SHADER *shader,
   ALLEGRO_SHADER_TYPE type, const char *filename)

Overview

Like al_attach_shader_source(3) but reads the source code for the shader from the named file.

Returns true on success and false on error, in which case the error log is updated. The error log can be retrieved with al_get_shader_log(3).

Since

5.1.0

From allegro 5.2.11.3-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.